[Erp5-report] r33850 nicolas - /erp5/trunk/products/ERP5/tests/testBusinessTemplate.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Mar 18 10:55:40 CET 2010
Author: nicolas
Date: Thu Mar 18 10:55:37 2010
New Revision: 33850
URL: http://svn.erp5.org?rev=33850&view=rev
Log:
Reinstallation is done against a User choices (listbox)
simulate this behaviour with default actions.
Modified:
erp5/trunk/products/ERP5/tests/testBusinessTemplate.py
Modified: erp5/trunk/products/ERP5/tests/testBusinessTemplate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testBusinessTemplate.py?rev=33850&r1=33849&r2=33850&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testBusinessTemplate.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testBusinessTemplate.py [utf8] Thu Mar 18 10:55:37 2010
@@ -2421,7 +2421,11 @@
Install importzed business template
"""
import_bt = sequence.get('current_bt')
- import_bt.reinstall()
+ listbox_object_list = import_bt.BusinessTemplate_getModifiedObject()
+ install_kw = {}
+ for listbox_line in listbox_object_list:
+ install_kw[listbox_line.object_id] = listbox_line.choice_item_list[0][1]
+ import_bt.reinstall(object_to_update=install_kw)
def stepCheckBeforeReinstall(self, sequence=None, sequence_list=None, **kw):
"""
More information about the Erp5-report
mailing list