Commit 9414f915 authored by Yusei Tahara's avatar Yusei Tahara

float is also a basic data type.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26638 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b32693fd
...@@ -860,8 +860,8 @@ class ERP5Form(ZMIForm, ZopePageTemplate): ...@@ -860,8 +860,8 @@ class ERP5Form(ZMIForm, ZopePageTemplate):
if isinstance(aq_base(value), (Method, TALESMethod)): if isinstance(aq_base(value), (Method, TALESMethod)):
value = copyMethod(value) value = copyMethod(value)
elif value is not None and not isinstance(value, elif value is not None and not isinstance(value,
(str, unicode, int, long, bool, list, tuple, dict)): (str, unicode, int, long, float, bool, list, tuple, dict)):
raise ValueError, repr(value) raise ValueError, '%s:%s' % (type(value), repr(value))
new_dict[key] = value new_dict[key] = value
return new_dict return new_dict
...@@ -982,8 +982,8 @@ class ERP5Form(ZMIForm, ZopePageTemplate): ...@@ -982,8 +982,8 @@ class ERP5Form(ZMIForm, ZopePageTemplate):
if isinstance(aq_base(value), (Method, TALESMethod)): if isinstance(aq_base(value), (Method, TALESMethod)):
value = copyMethod(value) value = copyMethod(value)
elif value is not None and not isinstance(value, elif value is not None and not isinstance(value,
(str, unicode, int, long, bool, list, tuple, dict)): (str, unicode, int, long, float, bool, list, tuple, dict)):
raise ValueError, repr(value) raise ValueError, '%s:%s' % (type(value), repr(value))
new_dict[key] = value new_dict[key] = value
return new_dict return new_dict
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment