Commit da805854 authored by Jérome Perrin's avatar Jérome Perrin

ugly workaround to prevent raising an exception when a float field is rendered
in scientific notation. (eg. 10e13)



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11743 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ff7e10d0
......@@ -997,6 +997,9 @@ class FloatWidget(TextWidget):
value = str(float(value))
except ValueError:
return value
else:
if 'e' in value: # scientific notation hack
return value
value_list = value.split('.')
integer = value_list[0]
if input_style.find(' ')>=0:
......
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