From 964e9c750fc875cd74fa79773bc3d602ebac59c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Thu, 2 Oct 2008 11:51:00 +0000 Subject: [PATCH] use getattr on aq_base to prevent acquisition (and not to use hasattr) git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23972 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 c339e11bce..e3a380a8a5 100644 --- a/product/ERP5Type/Base.py +++ b/product/ERP5Type/Base.py @@ -3115,7 +3115,7 @@ class Base( CopyContainer, if len(history): # Then get the first line of edit_workflow return history[0].get('time', None) - if hasattr(self, 'CreationDate') : + if getattr(aq_base(self), 'CreationDate', None) is not None: return asDate(self.CreationDate()) return None -- 2.30.9