[Erp5-report] r13333 - /erp5/trunk/products/ERP5Type/Accessor/Base.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Mar 12 11:03:15 CET 2007


Author: jp
Date: Mon Mar 12 11:03:13 2007
New Revision: 13333

URL: http://svn.erp5.org?rev=13333&view=rev
Log:
Implementation of Tester now conformant to spec. An object has a property only if the property has been set on it.

Modified:
    erp5/trunk/products/ERP5Type/Accessor/Base.py

Modified: erp5/trunk/products/ERP5Type/Accessor/Base.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Accessor/Base.py?rev=13333&r1=13332&r2=13333&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Accessor/Base.py (original)
+++ erp5/trunk/products/ERP5Type/Accessor/Base.py Mon Mar 12 11:03:13 2007
@@ -179,5 +179,4 @@
       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




More information about the Erp5-report mailing list