Commit 1162cb0f authored by Sebastien Robin's avatar Sebastien Robin

again a small change about the dict method_id


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