[Erp5-report] r23344 - /erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Sep 2 15:02:41 CEST 2008
Author: jerome
Date: Tue Sep 2 15:02:40 2008
New Revision: 23344
URL: http://svn.erp5.org?rev=23344&view=rev
Log:
update connection strings before installing any business template, business
template ID genereator needs a valid connection string.
Modified:
erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py
Modified: erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py?rev=23344&r1=23343&r2=23344&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py (original)
+++ erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py Tue Sep 2 15:02:40 2008
@@ -392,6 +392,9 @@
def _updateConnectionStrings(self):
"""Update connection strings with values passed by the testRunner
"""
+ global current_app
+ if current_app is not None:
+ self.app = current_app
portal = self.getPortal()
# update connection strings
for connection_string_name, connection_string in\
@@ -654,6 +657,8 @@
for id_ in getLocalConstraintList():
removeLocalConstraint(id_)
+ self._updateConnectionStrings()
+
update_business_templates = os.environ.get('update_business_templates') is not None
BusinessTemplate_getModifiedObject = aq_base(getattr(portal, 'BusinessTemplate_getModifiedObject', None))
More information about the Erp5-report
mailing list