From 5f48c2de3d061ce7c353cdac0543e2a6dbbb9272 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com>
Date: Mon, 4 Dec 2006 13:44:20 +0000
Subject: [PATCH] us getattr instead of hasattr

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11601 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/Base.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/product/ERP5Type/Base.py b/product/ERP5Type/Base.py
index 6fe0036ef3..16325533be 100644
--- a/product/ERP5Type/Base.py
+++ b/product/ERP5Type/Base.py
@@ -652,7 +652,8 @@ class Base( CopyContainer,
     # Test presence of attribute without acquisition
     # if present, get it in its context, thus we keep acquisition if
     # returned value is an object
-    if hasattr(aq_base(self), storage_id):
+    d = getattr(aq_base(self), storage_id, _MARKER)
+    if d is not _MARKER:
       value = getattr(self, storage_id, None)
     else:
       value = None
-- 
2.30.9