[Erp5-report] r26638 - /erp5/trunk/products/ERP5Form/Form.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Apr 27 04:56:57 CEST 2009


Author: yusei
Date: Mon Apr 27 04:56:56 2009
New Revision: 26638

URL: http://svn.erp5.org?rev=26638&view=rev
Log:
float is also a basic data type.

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

Modified: erp5/trunk/products/ERP5Form/Form.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/Form.py?rev=26638&r1=26637&r2=26638&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/Form.py [utf8] (original)
+++ erp5/trunk/products/ERP5Form/Form.py [utf8] Mon Apr 27 04:56:56 2009
@@ -860,8 +860,8 @@
                 if isinstance(aq_base(value), (Method, TALESMethod)):
                     value = copyMethod(value)
                 elif value is not None and not isinstance(value,
-                        (str, unicode, int, long, bool, list, tuple, dict)):
-                    raise ValueError, repr(value)
+                        (str, unicode, int, long, float, bool, list, tuple, dict)):
+                    raise ValueError, '%s:%s' % (type(value), repr(value))
                 new_dict[key] = value
             return new_dict
 
@@ -982,8 +982,8 @@
                 if isinstance(aq_base(value), (Method, TALESMethod)):
                     value = copyMethod(value)
                 elif value is not None and not isinstance(value,
-                        (str, unicode, int, long, bool, list, tuple, dict)):
-                    raise ValueError, repr(value)
+                        (str, unicode, int, long, float, bool, list, tuple, dict)):
+                    raise ValueError, '%s:%s' % (type(value), repr(value))
                 new_dict[key] = value
             return new_dict
 




More information about the Erp5-report mailing list