Commit 7f7d820f authored by Jean-Paul Smets's avatar Jean-Paul Smets

extra tests in _propertyMap


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2087 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f68bad69
......@@ -280,8 +280,10 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
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', ())))
if aq_portal_type.has_key(ptype):
return tuple(list(getattr(aq_portal_type[ptype], '_properties', None)) +
list(getattr(self, '_local_properties', ())))
return ERP5PropertyManager._propertyMap(self)
def _aq_dynamic(self, id):
global aq_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