Commit cf4ef4c4 authored by Jérome Perrin's avatar Jérome Perrin

take into account class _properties in propertyMap()


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9610 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a4b320e0
...@@ -396,12 +396,11 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ): ...@@ -396,12 +396,11 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
def _propertyMap(self): def _propertyMap(self):
""" Method overload - properties are now defined on the ptype """ """ Method overload - properties are now defined on the ptype """
ptype = self.portal_type ptype = self.portal_type
#LOG('_propertyMap',0,ptype)
self._aq_dynamic('id') # Make sure aq_dynamic has been called once self._aq_dynamic('id') # Make sure aq_dynamic has been called once
if Base.aq_portal_type.has_key(ptype): if Base.aq_portal_type.has_key(ptype):
#LOG('_propertyMap ptype',0,list(getattr(aq_portal_type[ptype], '_properties', ())))
return tuple(list(getattr(Base.aq_portal_type[ptype], '_properties', ())) + return tuple(list(getattr(Base.aq_portal_type[ptype], '_properties', ())) +
list(getattr(self, '_local_properties', ()))) list(getattr(self, '_local_properties', ())) +
list(ERP5PropertyManager._propertyMap(self)))
return ERP5PropertyManager._propertyMap(self) return ERP5PropertyManager._propertyMap(self)
def _aq_dynamic_pmethod(self, id): def _aq_dynamic_pmethod(self, 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