Commit c0035bbd authored by Yoshinori Okuji's avatar Yoshinori Okuji

Use process_timer instead of distribute + tic. This just work arounds some security problem.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14656 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 46698e31
...@@ -470,8 +470,7 @@ class ERP5TypeTestCase(PortalTestCase): ...@@ -470,8 +470,7 @@ class ERP5TypeTestCase(PortalTestCase):
if portal_activities is not None: if portal_activities is not None:
count = 1000 count = 1000
while len(portal_activities.getMessageList()) > 0: while len(portal_activities.getMessageList()) > 0:
portal_activities.distribute() portal_activities.process_timer(None, None)
portal_activities.tic()
# This prevents an infinite loop. # This prevents an infinite loop.
count -= 1 count -= 1
if count == 0: if count == 0:
......
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