[Erp5-report] r20026 - /erp5/trunk/products/ERP5Type/Accessor/
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Mar 19 11:36:19 CET 2008
Author: nicolas
Date: Wed Mar 19 11:36:18 2008
New Revision: 20026
URL: http://svn.erp5.org?rev=20026&view=rev
Log:
Add new property to look up acquired properties on object given by acquisition_object_id.
This behaviour is copied from CategoryTool
Modified:
erp5/trunk/products/ERP5Type/Accessor/Acquired.py
erp5/trunk/products/ERP5Type/Accessor/AcquiredProperty.py
Modified: erp5/trunk/products/ERP5Type/Accessor/Acquired.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Accessor/Acquired.py?rev=20026&r1=20025&r2=20026&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Accessor/Acquired.py (original)
+++ erp5/trunk/products/ERP5Type/Accessor/Acquired.py Wed Mar 19 11:36:18 2008
@@ -51,6 +51,7 @@
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 @@
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 @@
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 @@
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 @@
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 @@
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 @@
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
)
Modified: erp5/trunk/products/ERP5Type/Accessor/AcquiredProperty.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Accessor/AcquiredProperty.py?rev=20026&r1=20025&r2=20026&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Accessor/AcquiredProperty.py (original)
+++ erp5/trunk/products/ERP5Type/Accessor/AcquiredProperty.py Wed Mar 19 11:36:18 2008
@@ -54,6 +54,7 @@
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 @@
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 @@
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 @@
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 @@
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
More information about the Erp5-report
mailing list