Commits

Reed O'Brien committed cf5b7fa

Remove duplicate DateInput class definition

  • Participants
  • Parent commits 44344a9

Comments (0)

Files changed (1)

                     subfield.widget.handle_error(subfield, e)
 
 
-class DateInputWidget(Widget):
-    """
-    
-    Renders an ``<input type="date"/>`` date picker widget (uses JQuery Tools
-    to paint the control if the browser is not HTML5-aware).  Most useful when
-    the schema  node is a ``colander.Date`` object.
-
-    **Attributes/Arguments**
-
-    size
-        The size, in columns, of the text input field.  Defaults to
-        ``None``, meaning that the ``size`` is not included in the
-        widget output (uses browser default size).
-
-    template
-        The template name used to render the widget.  Default:
-        ``dateinput``.
-
-    readonly_template
-        The template name used to render the widget in read-only mode.
-        Default: ``readonly/textinput``.
-    """
-    template = 'dateinput'
-    readonly_template = 'readonly/textinput'
-    size = None
-
-    def serialize(self, field, cstruct=colander.null, readonly=False):
-        if cstruct is colander.null:
-            cstruct = ''
-        template = readonly and self.readonly_template or self.template
-        return field.renderer(template, field=field, cstruct=cstruct)
-
-    def deserialize(self, field, pstruct):
-        if pstruct is colander.null:
-            return colander.null
-        return pstruct
-
 class TextInputWidget(Widget):
     """
     Renders an ``<input type="text"/>`` widget.
 
 class DateInputWidget(Widget):
     """
-    
     Renders an ``<input type="date"/>`` date picker widget (uses JQuery Tools
     to paint the control if the browser is not HTML5-aware).  Most useful when
     the schema  node is a ``colander.Date`` object.