Commit e0ba2a73 authored by Rafael Monnerat's avatar Rafael Monnerat

Allow not invoke activity only wait.

This is useful when the site keep portal_activities subscribed.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36369 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 50b7a290
...@@ -64,6 +64,7 @@ ...@@ -64,6 +64,7 @@
from Products.ERP5Type.Utils import sleep\n from Products.ERP5Type.Utils import sleep\n
count = int(count)\n count = int(count)\n
while len(context.portal_activities.getMessageList()) > 0:\n while len(context.portal_activities.getMessageList()) > 0:\n
if invoke == 1:\n
context.portal_activities.process_timer(0, 0)\n context.portal_activities.process_timer(0, 0)\n
count -= 1\n count -= 1\n
sleep(t=1)\n sleep(t=1)\n
...@@ -83,7 +84,7 @@ return \'Done.\'\n ...@@ -83,7 +84,7 @@ return \'Done.\'\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>count = 1000</string> </value> <value> <string>count = 1000, invoke=1</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -103,13 +104,14 @@ return \'Done.\'\n ...@@ -103,13 +104,14 @@ return \'Done.\'\n
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>1</int> </value> <value> <int>2</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>count</string> <string>count</string>
<string>invoke</string>
<string>Products.ERP5Type.Utils</string> <string>Products.ERP5Type.Utils</string>
<string>sleep</string> <string>sleep</string>
<string>int</string> <string>int</string>
...@@ -131,6 +133,7 @@ return \'Done.\'\n ...@@ -131,6 +133,7 @@ return \'Done.\'\n
<value> <value>
<tuple> <tuple>
<int>1000</int> <int>1000</int>
<int>1</int>
</tuple> </tuple>
</value> </value>
</item> </item>
......
29 30
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment