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):
if portal_activities is not None:
count = 1000
while len(portal_activities.getMessageList()) > 0:
portal_activities.distribute()
portal_activities.tic()
portal_activities.process_timer(None, None)
# This prevents an infinite loop.
count -= 1
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