Commit 4b9232a2 authored by Sebastien Robin's avatar Sebastien Robin

fixed bug in the FloatField patch


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3210 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bae6f71c
......@@ -732,9 +732,11 @@ class PatchedDateTimeValidator(DateTimeValidator):
DateTimeField.validator = PatchedDateTimeValidator()
from Products.Formulator.Widget import TextWidgetInstance
class FloatWidget(TextWidget):
property_names = Widget.property_names +\
property_names = TextWidget.property_names +\
['input_style','precision']
input_style = fields.ListField('input_style',
......@@ -789,7 +791,7 @@ class FloatWidget(TextWidget):
if percent:
value += '%'
return TextWidget.render(self,field, key, value, REQUEST)
return TextWidgetInstance.render(field, key, value, REQUEST)
FloatWidgetInstance = FloatWidget()
from Products.Formulator.StandardFields import FloatField
......
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