Commit ea9c7c0d authored by Nicolas Dumazet's avatar Nicolas Dumazet

of course the Base methods could be well written and respect their contracts as well ;)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42852 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8a07ed8b
......@@ -1148,6 +1148,8 @@ class Base( CopyContainer,
tv = getTransactionalVariable()
if isinstance(portal_type, list):
portal_type = tuple(portal_type)
elif portal_type is None:
portal_type = ()
acquisition_key = ('_getDefaultAcquiredProperty', self.getPath(), key,
acquisition_object_id, base_category, portal_type,
copy_value, mask_value, sync_value, accessor_id, depends,
......@@ -1333,6 +1335,8 @@ class Base( CopyContainer,
tv = getTransactionalVariable()
if isinstance(portal_type, list):
portal_type = tuple(portal_type)
elif portal_type is None:
portal_type = ()
acquisition_key = ('_getAcquiredPropertyList', self.getPath(), key, base_category,
portal_type, copy_value, mask_value, sync_value,
accessor_id, depends, storage_id, alt_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