Commit 008cbdd2 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Following r43353, make alt_accessor_id hashable as well by converting

it to a tuple



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43648 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 10403db3
...@@ -70,6 +70,8 @@ class DefaultGetter(BaseGetter): ...@@ -70,6 +70,8 @@ class DefaultGetter(BaseGetter):
acquisition_object_id = tuple(acquisition_object_id) acquisition_object_id = tuple(acquisition_object_id)
if isinstance(acquisition_portal_type, list): if isinstance(acquisition_portal_type, list):
acquisition_portal_type = tuple(acquisition_portal_type) acquisition_portal_type = tuple(acquisition_portal_type)
if isinstance(alt_accessor_id, list):
alt_accessor_id = tuple(alt_accessor_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
...@@ -158,6 +160,8 @@ class ListGetter(BaseGetter): ...@@ -158,6 +160,8 @@ class ListGetter(BaseGetter):
acquisition_object_id = tuple(acquisition_object_id) acquisition_object_id = tuple(acquisition_object_id)
if isinstance(acquisition_portal_type, list): if isinstance(acquisition_portal_type, list):
acquisition_portal_type = tuple(acquisition_portal_type) acquisition_portal_type = tuple(acquisition_portal_type)
if isinstance(alt_accessor_id, list):
alt_accessor_id = tuple(alt_accessor_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
......
...@@ -74,6 +74,8 @@ class Getter(BaseGetter): ...@@ -74,6 +74,8 @@ class Getter(BaseGetter):
acquisition_portal_type = tuple(acquisition_portal_type) acquisition_portal_type = tuple(acquisition_portal_type)
if isinstance(acquisition_object_id, list): if isinstance(acquisition_object_id, list):
acquisition_object_id = tuple(acquisition_object_id) acquisition_object_id = tuple(acquisition_object_id)
if isinstance(alt_accessor_id, list):
alt_accessor_id = tuple(alt_accessor_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
...@@ -161,6 +163,8 @@ class Setter(BaseSetter): ...@@ -161,6 +163,8 @@ class Setter(BaseSetter):
acquisition_portal_type = tuple(acquisition_portal_type) acquisition_portal_type = tuple(acquisition_portal_type)
if isinstance(acquisition_object_id, list): if isinstance(acquisition_object_id, list):
acquisition_object_id = tuple(acquisition_object_id) acquisition_object_id = tuple(acquisition_object_id)
if isinstance(alt_accessor_id, list):
alt_accessor_id = tuple(alt_accessor_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
......
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