Commit 4c54d44b authored by Nicolas Delaby's avatar Nicolas Delaby

Add new property to look up acquired properties on object given by acquisition_object_id.

This behaviour is copied from CategoryTool

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20026 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f73362c1
......@@ -51,6 +51,7 @@ class DefaultGetter(Method):
acquisition_sync_value,
storage_id=None,
alt_accessor_id = None,
acquisition_object_id=None,
is_list_type = 0,
is_tales_type = 0
):
......@@ -70,6 +71,7 @@ class DefaultGetter(Method):
storage_id = "%s%s" % (ATTRIBUTE_PREFIX, key)
self._storage_id = storage_id
self._alt_accessor_id = alt_accessor_id
self._acquisition_object_id = acquisition_object_id
self._is_list_type = is_list_type
self._is_tales_type = is_tales_type
......@@ -95,6 +97,7 @@ class DefaultGetter(Method):
sync_value=self._acquisition_sync_value,
storage_id=self._storage_id,
alt_accessor_id=self._alt_accessor_id,
acquisition_object_id=self._acquisition_object_id,
is_list_type=is_list_type,
is_tales_type=is_tales_type
)
......@@ -125,6 +128,7 @@ class ListGetter(Method):
acquisition_sync_value,
storage_id=None,
alt_accessor_id = None,
acquisition_object_id=None,
is_list_type = 0,
is_tales_type = 0
):
......@@ -144,6 +148,7 @@ class ListGetter(Method):
storage_id = "%s%s" % (ATTRIBUTE_PREFIX, key)
self._storage_id = storage_id
self._alt_accessor_id = alt_accessor_id
self._acquisition_object_id = acquisition_object_id
self._is_list_type = is_list_type
self._is_tales_type = is_tales_type
......@@ -160,6 +165,7 @@ class ListGetter(Method):
else:
is_list_type = self._is_list_type
is_tales_type = self._is_tales_type
return instance._getAcquiredPropertyList(self._key, default, self._null,
base_category=self._acquisition_base_category,
portal_type=self._acquisition_portal_type,
......@@ -169,6 +175,7 @@ class ListGetter(Method):
sync_value=self._acquisition_sync_value,
storage_id=self._storage_id,
alt_accessor_id=self._alt_accessor_id,
acquisition_object_id=self._acquisition_object_id,
is_list_type=is_list_type,
is_tales_type=is_tales_type
)
......
......@@ -54,6 +54,7 @@ class Getter(Method):
acquisition_sync_value,
storage_id=None,
alt_accessor_id = None,
acquisition_object_id=None,
is_list_type = 0,
is_tales_type = 0
):
......@@ -75,6 +76,7 @@ class Getter(Method):
storage_id = "%s%s" % (ATTRIBUTE_PREFIX, key)
self._storage_id = storage_id
self._alt_accessor_id = alt_accessor_id
self._acquisition_object_id = acquisition_object_id
self._is_list_type = is_list_type
self._is_tales_type = is_tales_type
......@@ -92,6 +94,7 @@ class Getter(Method):
sync_value=self._acquisition_sync_value,
storage_id=self._storage_id,
alt_accessor_id=self._alt_accessor_id,
acquisition_object_id=self._acquisition_object_id,
is_list_type=self._is_list_type,
is_tales_type=self._is_tales_type,
checked_permission=kw.get('checked_permission', None)
......@@ -128,6 +131,7 @@ class Setter(Method):
acquisition_sync_value,
storage_id=None,
alt_accessor_id = None,
acquisition_object_id = None,
is_list_type = 0,
is_tales_type = 0,
reindex = 0
......@@ -150,6 +154,7 @@ class Setter(Method):
storage_id = "%s%s" % (ATTRIBUTE_PREFIX, key)
self._storage_id = storage_id
self._alt_accessor_id = alt_accessor_id
self._acquisition_object_id = acquisition_object_id
self._is_list_type = is_list_type
self._is_tales_type = is_tales_type
self._reindex = reindex
......
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