Commit 99a32346 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Followup to r43353


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43354 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8df1e1ea
...@@ -65,6 +65,16 @@ class Getter(BaseGetter): ...@@ -65,6 +65,16 @@ class Getter(BaseGetter):
self._property_type = property_type self._property_type = property_type
self._portal_type = portal_type self._portal_type = portal_type
self._null = type_definition[property_type]['null'] self._null = type_definition[property_type]['null']
# These values are hashed by _get*AcquiredProperty: to be
# hashable, they need to be converted to tuples
if isinstance(acquisition_base_category, list):
acquisition_base_category = tuple(acquisition_base_category)
if isinstance(acquisition_portal_type, list):
acquisition_portal_type = tuple(acquisition_portal_type)
if isinstance(acquisition_object_id, list):
acquisition_object_id = tuple(acquisition_object_id)
self._acquisition_base_category = acquisition_base_category self._acquisition_base_category = acquisition_base_category
self._acquisition_portal_type = acquisition_portal_type self._acquisition_portal_type = acquisition_portal_type
self._acquisition_accessor_id = acquisition_accessor_id self._acquisition_accessor_id = acquisition_accessor_id
...@@ -142,6 +152,16 @@ class Setter(BaseSetter): ...@@ -142,6 +152,16 @@ class Setter(BaseSetter):
self._property_type = property_type self._property_type = property_type
self._portal_type = portal_type self._portal_type = portal_type
self._null = type_definition[property_type]['null'] self._null = type_definition[property_type]['null']
# These values are hashed by _get*AcquiredProperty: to be
# hashable, they need to be converted to tuples
if isinstance(acquisition_base_category, list):
acquisition_base_category = tuple(acquisition_base_category)
if isinstance(acquisition_portal_type, list):
acquisition_portal_type = tuple(acquisition_portal_type)
if isinstance(acquisition_object_id, list):
acquisition_object_id = tuple(acquisition_object_id)
self._acquisition_base_category = acquisition_base_category self._acquisition_base_category = acquisition_base_category
self._acquisition_portal_type = acquisition_portal_type self._acquisition_portal_type = acquisition_portal_type
self._acquisition_accessor_id = acquisition_accessor_id self._acquisition_accessor_id = acquisition_accessor_id
......
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