src/pyams_utils/widget/decimal.py
branchdev-tf
changeset 419 05ff71a02b2d
parent 292 b338586588ad
--- a/src/pyams_utils/widget/decimal.py	Sat Nov 23 01:17:56 2019 +0100
+++ b/src/pyams_utils/widget/decimal.py	Sat Nov 23 14:51:46 2019 +0100
@@ -10,8 +10,10 @@
 # FOR A PARTICULAR PURPOSE.
 #
 
-__docformat__ = 'restructuredtext'
+"""PyAMS_utils.widget.decimal module
 
+This module provides a custom data converter for decimal fields using dots as separator
+"""
 
 import decimal
 
@@ -21,6 +23,8 @@
 from pyams_utils.adapter import adapter_config
 from pyams_utils.schema import IDottedDecimalField
 
+__docformat__ = 'restructuredtext'
+
 from pyams_utils import _
 
 
@@ -30,9 +34,6 @@
 
     errorMessage = _('The entered value is not a valid decimal literal.')
 
-    def __init__(self, field, widget):
-        super(DottedDecimalDataConverter, self).__init__(field, widget)
-
     def toWidgetValue(self, value):
         if not value:
             return self.field.missing_value