Reed O'Brien avatar Reed O'Brien committed cf5b7fa

Remove duplicate DateInput class definition

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.
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.