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,7 +64,8 @@
from Products.ERP5Type.Utils import sleep\n
count = int(count)\n
while len(context.portal_activities.getMessageList()) > 0:\n
context.portal_activities.process_timer(0, 0)\n
if invoke == 1:\n
context.portal_activities.process_timer(0, 0)\n
count -= 1\n
sleep(t=1)\n
if count < 0:\n
......@@ -83,7 +84,7 @@ return \'Done.\'\n
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>count = 1000</string> </value>
<value> <string>count = 1000, invoke=1</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
......@@ -103,13 +104,14 @@ return \'Done.\'\n
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>1</int> </value>
<value> <int>2</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>count</string>
<string>invoke</string>
<string>Products.ERP5Type.Utils</string>
<string>sleep</string>
<string>int</string>
......@@ -131,6 +133,7 @@ return \'Done.\'\n
<value>
<tuple>
<int>1000</int>
<int>1</int>
</tuple>
</value>
</item>
......
29
\ No newline at end of file
30
\ 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