[Erp5-report] r32374 leonardo - /erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Feb 9 17:42:37 CET 2010
Author: leonardo
Date: Tue Feb 9 17:42:37 2010
New Revision: 32374
URL: http://svn.erp5.org?rev=32374&view=rev
Log:
Only update translation table if BTs were actually uninstalled
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=32374&r1=32373&r2=32374&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py [utf8] Tue Feb 9 17:42:37 2010
@@ -422,14 +422,14 @@
uninstalled_list = []
portal = self.portal
for bt in portal.portal_templates.getInstalledBusinessTemplateList():
- if bt.getTitle() in template_list:
+ bt_title = bt.getTitle()
+ if bt_title in template_list:
bt.uninstall(remove_translations=True)
- uninstalled_list.append(bt.getTitle())
- getattr(portal, 'ERP5Site_updateTranslationTable', lambda: None)()
+ uninstalled_list.append(bt_title)
+ if uninstalled_list:
+ getattr(portal, 'ERP5Site_updateTranslationTable', lambda: None)()
self.stepTic()
return uninstalled_list
-
-
def setUp(self):
'''Sets up the fixture. Do not override,
More information about the Erp5-report
mailing list