diff --git a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/ListBoxZuite_waitForActivities.xml b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/ListBoxZuite_waitForActivities.xml index c44685ec270aa6275028840f1c108da97c05eb5e..5b35cbeb8d566312f2d0332a909326d2d9e932df 100644 --- a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/ListBoxZuite_waitForActivities.xml +++ b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/ListBoxZuite_waitForActivities.xml @@ -70,10 +70,12 @@ <key> <string>_body</string> </key> <value> <string encoding="cdata"><![CDATA[ +from Products.ERP5Type.Utils import sleep\n count = 1000\n while len(context.portal_activities.getMessageList()) > 0:\n context.portal_activities.process_timer(0, 0)\n count -= 1\n + sleep()\n if count < 0:\n raise RuntimeError, \'tic is endless\'\n \n @@ -128,6 +130,8 @@ return \'Done.\'\n <key> <string>co_varnames</string> </key> <value> <tuple> + <string>Products.ERP5Type.Utils</string> + <string>sleep</string> <string>count</string> <string>len</string> <string>_getattr_</string> diff --git a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Zuite_waitForActivities.xml b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Zuite_waitForActivities.xml index c7dc31390eeda6baccebdcdd39156323f4d5c68b..e92595ef5721441d618cd4edcd19da5f652a78ff 100644 --- a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Zuite_waitForActivities.xml +++ b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Zuite_waitForActivities.xml @@ -70,10 +70,12 @@ <key> <string>_body</string> </key> <value> <string encoding="cdata"><![CDATA[ +from Products.ERP5Type.Utils import sleep\n count = 1000\n while len(context.portal_activities.getMessageList()) > 0:\n context.portal_activities.process_timer(0, 0)\n count -= 1\n + sleep()\n if count < 0:\n raise RuntimeError, \'tic is endless\'\n \n @@ -128,6 +130,8 @@ return \'Done.\'\n <key> <string>co_varnames</string> </key> <value> <tuple> + <string>Products.ERP5Type.Utils</string> + <string>sleep</string> <string>count</string> <string>len</string> <string>_getattr_</string> diff --git a/bt5/erp5_ui_test/bt/change_log b/bt5/erp5_ui_test/bt/change_log index 7e87a76b619354d7c9a5d86d11f832ac1dd99469..764c04f7d27696586db59bc3847536aaefb78fce 100644 --- a/bt5/erp5_ui_test/bt/change_log +++ b/bt5/erp5_ui_test/bt/change_log @@ -1,3 +1,6 @@ +2006-11-02 aurel +* Call sleep while waiting for activities thus we reduce cpu and mysql usage to let activities run + 2006-09-15 Kevin * Add new test to check that redirections triggered by the listbox are ok. diff --git a/bt5/erp5_ui_test/bt/revision b/bt5/erp5_ui_test/bt/revision index d25720879e9d5b2c8db60c8e908af0c01017e831..1bda760653e918fc4fca9a02b046236b0aa02843 100644 --- a/bt5/erp5_ui_test/bt/revision +++ b/bt5/erp5_ui_test/bt/revision @@ -1 +1 @@ -112 \ No newline at end of file +117 \ No newline at end of file