Commit f08c7dd1 authored by Vincent Pelletier's avatar Vincent Pelletier

ERP5Catalog: set.__iadd__ does not like iterators, so use set.update .

parent 6db6e20f
...@@ -871,7 +871,7 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject): ...@@ -871,7 +871,7 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject):
document_object = aq_inner(object_value) document_object = aq_inner(object_value)
w = IndexableObjectWrapper(document_object, user_set, catalog_role_set) w = IndexableObjectWrapper(document_object, user_set, catalog_role_set)
w.predicate_property_dict = getPredicatePropertyDict(object_value) or {} w.predicate_property_dict = getPredicatePropertyDict(object_value) or {}
group_and_user_id_set += w._getSecurityGroupIdGenerator() group_and_user_id_set.update(w._getSecurityGroupIdGenerator())
# Find the parent definition for security # Find the parent definition for security
is_acquired = 0 is_acquired = 0
...@@ -887,7 +887,7 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject): ...@@ -887,7 +887,7 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject):
break break
if is_acquired: if is_acquired:
document_w = IndexableObjectWrapper(document_object, user_set, catalog_role_set) document_w = IndexableObjectWrapper(document_object, user_set, catalog_role_set)
group_and_user_id_set += document_w._getSecurityGroupIdGenerator() group_and_user_id_set.update(document_w._getSecurityGroupIdGenerator())
else: else:
document_w = w document_w = w
wrapper_list.append((document_object, w, document_w)) wrapper_list.append((document_object, w, document_w))
......
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