Commit f9ec10f8 authored by Romain Courteaud's avatar Romain Courteaud

Forgot []


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7193 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d2395e42
...@@ -199,7 +199,7 @@ class SetSetter(Method): ...@@ -199,7 +199,7 @@ class SetSetter(Method):
if len(list_value) > 0: if len(list_value) > 0:
default_value = list_value[0] default_value = list_value[0]
my_dict = dict((x, 0) for x in value if x!=default_value) my_dict = dict([(x, 0) for x in value if x!=default_value])
new_list_value = my_dict.keys() new_list_value = my_dict.keys()
# If we change the set, # If we change the set,
# the default value must be in the new set # the default value must be in the new set
...@@ -317,6 +317,7 @@ class SetGetter(ListGetter): ...@@ -317,6 +317,7 @@ class SetGetter(ListGetter):
def __call__(self, instance, *args, **kw): def __call__(self, instance, *args, **kw):
result_list = ListGetter.__call__(self, instance, *args, **kw) result_list = ListGetter.__call__(self, instance, *args, **kw)
# import pdb; pdb.set_trace()
result_set = dict([(x, 0) for x in result_list]).keys() result_set = dict([(x, 0) for x in result_list]).keys()
return result_set return result_set
......
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