Commit f68bad69 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Custom _propertyMap implementation to support _aq_dynamic


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2086 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 83917e1e
...@@ -275,6 +275,14 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ): ...@@ -275,6 +275,14 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
""" """
initializeClassDynamicProperties(self, self.__class__) initializeClassDynamicProperties(self, self.__class__)
def _propertyMap(self):
""" Method overload - properties are now defined on the ptype """
global aq_portal_type
ptype = self.portal_type
self._aq_dynamic(None) # Make sure aq_dynamic has been called once
return tuple(list(getattr(aq_portal_type[ptype], '_properties', None)) +
list(getattr(self, '_local_properties', ())))
def _aq_dynamic(self, id): def _aq_dynamic(self, id):
global aq_portal_type global aq_portal_type
ptype = self.portal_type ptype = self.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