[Erp5-report] r9394 - /erp5/trunk/products/ERP5Form/Selection.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Aug 24 13:54:46 CEST 2006


Author: vincent
Date: Thu Aug 24 13:54:45 2006
New Revision: 9394

URL: http://svn.erp5.org?rev=9394&view=rev
Log:
Use isinstance. Not all occurencies in file are corrected.

Modified:
    erp5/trunk/products/ERP5Form/Selection.py

Modified: erp5/trunk/products/ERP5Form/Selection.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/Selection.py?rev=9394&r1=9393&r2=9394&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/Selection.py (original)
+++ erp5/trunk/products/ERP5Form/Selection.py Thu Aug 24 13:54:45 2006
@@ -179,7 +179,7 @@
         kw = self.params.copy()
         if self.invert_mode is not 0:
           kw['uid'] = self.uids
-        if method is None or type(method) is type('a'):
+        if method is None or isinstance(method, str):
           method_path = method or self.method_path
           method = context.unrestrictedTraverse(method_path)
         if type(method) is type('a'):




More information about the Erp5-report mailing list