Commit 340a8bb7 authored by Alexandre Boeglin's avatar Alexandre Boeglin

Quick fix : sometimes, selection_name happens to be passed multiple times

and we then get a list or tuple of strings instead of a string.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3001 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c56d77f3
......@@ -104,6 +104,8 @@ class SelectionTool( UniqueObject, SimpleItem ):
if user_id is not None:
if not self.selection_data.has_key(user_id):
self.selection_data[user_id] = PersistentMapping()
if type(selection_name) is type(()) or type(selection_name) is type([]) :
selection_name = selection_name[0]
return self.selection_data[user_id].get(selection_name, None)
else:
return None
......
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