From 0ae3a372e06670e251db3b6ad05be7d229eccfd0 Mon Sep 17 00:00:00 2001 From: Jean-Paul Smets <jp@nexedi.com> Date: Sun, 20 Jul 2008 14:31:46 +0000 Subject: [PATCH] Reverted git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22577 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/Base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5Type/Base.py b/product/ERP5Type/Base.py index e450a146ef..d5ea1c99e0 100644 --- a/product/ERP5Type/Base.py +++ b/product/ERP5Type/Base.py @@ -1410,7 +1410,7 @@ class Base( CopyContainer, return # Try to get a portal_type property (Implementation Dependent) aq_key = self._aq_key() - if getattr(Base.aq_portal_type, aq_key, None) is not None: + if not Base.aq_portal_type.has_key(aq_key): self._aq_dynamic('id') # Make sure _aq_dynamic has been called once if getattr(Base.aq_portal_type[aq_key], accessor_name, None) is not None: method = getattr(self, accessor_name) -- 2.30.9