Commit 3648c203 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Implementation of Tester now conformant to spec. An object has a property only...

Implementation of Tester now conformant to spec. An object has a property only if the property has been set on it.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13333 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 74b36525
......@@ -179,5 +179,4 @@ class Tester(Method):
self._storage_id = storage_id
def __call__(self, instance, *args, **kw):
#return getattr(instance, self._key, None) not in self._null
return getattr(aq_base(instance), self._storage_id, None) is not None # No acquisition on properties
return aq_base(instance).__dict__.has_key(self._storage_id) # No acquisition on properties
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