None
@view_config(renderer="templates/form.pt", name="dateinput")
@demonstrate("Date Input Widget")
def dateinput(self):
import datetime
class Schema(colander.Schema):
somedate = colander.SchemaNode(
colander.Date(),
validator=colander.Range(
min=datetime.date(datetime.date.today().year, 1, 1),
min_err=_("${val} is earlier than earliest date ${min}"),
),
title="Date",
)
schema = Schema()
form = deform.Form(schema, buttons=("submit",))
return self.render_form(form)