[Erp5-report] r10992 - in /erp5/trunk/bt5/erp5_accounting_ui_test: SkinTemplateItem/portal_...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Oct 27 16:55:53 CEST 2006
Author: jerome
Date: Fri Oct 27 16:55:51 2006
New Revision: 10992
URL: http://svn.erp5.org?rev=10992&view=rev
Log:
reset selections before running tests.
Modified:
erp5/trunk/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_reset.xml
erp5/trunk/bt5/erp5_accounting_ui_test/bt/revision
Modified: erp5/trunk/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_reset.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_reset.xml?rev=10992&r1=10991&r2=10992&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_reset.xml (original)
+++ erp5/trunk/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_reset.xml Fri Oct 27 16:55:51 2006
@@ -76,7 +76,6 @@
\n
# enable preference\n
pref = portal.portal_preferences.accounting_zuite_preference\n
-\n
if pref.owner_info()[\'id\'] != str(context.REQUEST.AUTHENTICATED_USER):\n
# we have to \'own\' the preference for the test\n
ptool = portal.portal_preferences\n
@@ -86,8 +85,18 @@
# as the preference changed, it\'s safer to clear the cache\n
from Products.ERP5Type.Cache import clearCache\n
clearCache()\n
+pref.enable()\n
\n
-pref.enable()\n
+# reset selections\n
+stool = context.getPortalObject().portal_selections\n
+for form in context.getPortalObject().portal_skins\\\n
+ .erp5_accounting.objectValues(spec=(\'ERP5 Form\',)):\n
+ listbox = getattr(form, \'listbox\', None)\n
+ if listbox is not None:\n
+ stool.setSelectionFor(listbox.get_value(\'selection_name\'), None)\n
+# also reset common selections\n
+stool.setSelectionFor(\'person_selection\', None)\n
+stool.setSelectionFor(\'organisation_selection\', None)\n
\n
return "Reset Successfully."\n
</string> </value>
@@ -146,6 +155,11 @@
<string>cb</string>
<string>Products.ERP5Type.Cache</string>
<string>clearCache</string>
+ <string>stool</string>
+ <string>form</string>
+ <string>getattr</string>
+ <string>None</string>
+ <string>listbox</string>
</tuple>
</value>
</item>
Modified: erp5/trunk/bt5/erp5_accounting_ui_test/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting_ui_test/bt/revision?rev=10992&r1=10991&r2=10992&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting_ui_test/bt/revision (original)
+++ erp5/trunk/bt5/erp5_accounting_ui_test/bt/revision Fri Oct 27 16:55:51 2006
@@ -1,1 +1,1 @@
-28
+29
More information about the Erp5-report
mailing list