Commit ae1b6509 authored by Sebastien Robin's avatar Sebastien Robin

changed a bit the method_dict


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@799 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c4bc48be
...@@ -200,8 +200,9 @@ class SQLDict(RAMDict): ...@@ -200,8 +200,9 @@ class SQLDict(RAMDict):
for m in activity_tool.getRegisteredMessageList(self): for m in activity_tool.getRegisteredMessageList(self):
if list(m.object_path) == list(object_path) and (method_id is None or method_id == m.method_id): if list(m.object_path) == list(object_path) and (method_id is None or method_id == m.method_id):
activity_tool.unregisterMessage(self, m) activity_tool.unregisterMessage(self, m)
if not method_dict.has_key(method_id or m.method_id): #if not method_dict.has_key(method_id or m.method_id):
method_dict[method_id or m.method_id] = 1 # Prevents calling invoke twice if not method_dict.has_key((tuple(object_path),method_id or m.method_id)):
method_dict[(tuple(object_path),method_id or m.method_id)] = 1 # Prevents calling invoke twice
if invoke: if invoke:
# First Validate # First Validate
if m.validate(self, activity_tool): if m.validate(self, activity_tool):
......
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