[Erp5-report] r11062 - in /erp5/trunk/bt5/erp5_ui_test: SkinTemplateItem/portal_skins/erp5_...

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Nov 2 16:13:23 CET 2006


Author: aurel
Date: Thu Nov  2 16:13:18 2006
New Revision: 11062

URL: http://svn.erp5.org?rev=11062&view=rev
Log:
2006-11-02 aurel
* Call sleep while waiting for activities thus we  reduce cpu and mysql usage to let activities run

Modified:
    erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/ListBoxZuite_waitForActivities.xml
    erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Zuite_waitForActivities.xml
    erp5/trunk/bt5/erp5_ui_test/bt/change_log
    erp5/trunk/bt5/erp5_ui_test/bt/revision

Modified: erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/ListBoxZuite_waitForActivities.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/ListBoxZuite_waitForActivities.xml?rev=11062&r1=11061&r2=11062&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/ListBoxZuite_waitForActivities.xml (original)
+++ erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/ListBoxZuite_waitForActivities.xml Thu Nov  2 16:13:18 2006
@@ -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 @@
                         <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>

Modified: erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Zuite_waitForActivities.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Zuite_waitForActivities.xml?rev=11062&r1=11061&r2=11062&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Zuite_waitForActivities.xml (original)
+++ erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Zuite_waitForActivities.xml Thu Nov  2 16:13:18 2006
@@ -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 @@
                         <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>

Modified: erp5/trunk/bt5/erp5_ui_test/bt/change_log
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/bt/change_log?rev=11062&r1=11061&r2=11062&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/bt/change_log (original)
+++ erp5/trunk/bt5/erp5_ui_test/bt/change_log Thu Nov  2 16:13:18 2006
@@ -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.
 

Modified: erp5/trunk/bt5/erp5_ui_test/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/bt/revision?rev=11062&r1=11061&r2=11062&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/bt/revision (original)
+++ erp5/trunk/bt5/erp5_ui_test/bt/revision Thu Nov  2 16:13:18 2006
@@ -1,1 +1,1 @@
-112
+117




More information about the Erp5-report mailing list