Commit 02981beb authored by Jean-Paul Smets's avatar Jean-Paul Smets

fixed _aq_dynamic bug in setters


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2504 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 81c4492f
...@@ -710,7 +710,7 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ): ...@@ -710,7 +710,7 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
# Try to get a portal_type property (Implementation Dependent) # Try to get a portal_type property (Implementation Dependent)
global aq_portal_type global aq_portal_type
if not aq_portal_type.has_key(self.portal_type): if not aq_portal_type.has_key(self.portal_type):
self._aq_dynamic() self._aq_dynamic('id') # Make sure _aq_dynamic has been called once
if hasattr(aq_portal_type[self.portal_type], accessor_name): if hasattr(aq_portal_type[self.portal_type], accessor_name):
method = getattr(self, accessor_name) method = getattr(self, accessor_name)
method(value, **kw) method(value, **kw)
...@@ -759,7 +759,7 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ): ...@@ -759,7 +759,7 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
# Try to get a portal_type property (Implementation Dependent) # Try to get a portal_type property (Implementation Dependent)
global aq_portal_type global aq_portal_type
if not aq_portal_type.has_key(self.portal_type): if not aq_portal_type.has_key(self.portal_type):
self._aq_dynamic() self._aq_dynamic('id') # Make sure _aq_dynamic has been called once
if hasattr(aq_portal_type[self.portal_type], accessor_name): if hasattr(aq_portal_type[self.portal_type], accessor_name):
method = getattr(self, accessor_name) method = getattr(self, accessor_name)
method(value, **kw) method(value, **kw)
......
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