Commit 5f48c2de authored by Aurel's avatar Aurel

us getattr instead of hasattr


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11601 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 15cbd4ce
......@@ -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
......
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