Commit 1b4189dd authored by Vincent Pelletier's avatar Vincent Pelletier

Fix a bug which caused object_path to be a list when it should have been a...

Fix a bug which caused object_path to be a list when it should have been a tuple: the exact type is tested afterward.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18502 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f113f221
......@@ -103,7 +103,7 @@ class Message:
"""
def __init__(self, obj, active_process, activity_kw, method_id, args, kw):
if isinstance(obj, str):
self.object_path = obj.split('/')
self.object_path = tuple(obj.split('/'))
else:
self.object_path = obj.getPhysicalPath()
if type(active_process) is StringType:
......
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