Commit 49d71203 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Even if expanded_object_list is empty, invokeGroup must deal with messages.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5751 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4e89e254
......@@ -652,14 +652,16 @@ class ActivityTool (Folder, UniqueObject):
LOG('WARNING ActivityTool', 0,
'Could not call method %s on object %s' % (m.method_id, m.object_path), error=sys.exc_info())
if len(expanded_object_list) > 0:
try:
if len(expanded_object_list) > 0:
method = self.unrestrictedTraverse(method_id)
# FIXME: how to pass parameters?
# FIXME: how to apply security here?
# NOTE: expanded_object_list must be set to failed objects by the callee.
# If it fully succeeds, expanded_object_list must be empty when returning.
result = method(expanded_object_list)
else:
result = None
except:
# In this case, the group method completely failed.
for m in new_message_list:
......
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