[Erp5-report] r17302 - /erp5/trunk/products/ERP5Type/Accessor/Base.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Oct 31 04:02:50 CET 2007
Author: yo
Date: Wed Oct 31 04:02:49 2007
New Revision: 17302
URL: http://svn.erp5.org?rev=17302&view=rev
Log:
Compare a value with null values rather than None. This does not fix testConstraint, but the test is wrong in my opinion.
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=17302&r1=17301&r2=17302&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Accessor/Base.py (original)
+++ erp5/trunk/products/ERP5Type/Accessor/Base.py Wed Oct 31 04:02:49 2007
@@ -188,4 +188,4 @@
self._storage_id = storage_id
def __call__(self, instance, *args, **kw):
- return getattr(aq_base(instance), self._storage_id, None) is not None
+ return getattr(aq_base(instance), self._storage_id, None) not in self._null
More information about the Erp5-report
mailing list