[Erp5-report] r34875 kazuhiko - /erp5/trunk/products/ERP5Type/Base.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Apr 30 10:50:43 CEST 2010


Author: kazuhiko
Date: Fri Apr 30 10:50:37 2010
New Revision: 34875

URL: http://svn.erp5.org?rev=34875&view=rev
Log:
fix the reversed condition.

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

Modified: erp5/trunk/products/ERP5Type/Base.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Base.py?rev=34875&r1=34874&r2=34875&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Base.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Base.py [utf8] Fri Apr 30 10:50:37 2010
@@ -2777,7 +2777,7 @@
     constraints = self.constraints
     if filt is not None:
       id_list = filt.get('id', None)
-      if isinstance(id_list, (list, tuple)):
+      if not isinstance(id_list, (list, tuple)):
         id_list = [id_list]
       constraints = filter(lambda x:x.id in id_list, constraints)
     return constraints




More information about the Erp5-report mailing list