None
@view_config(renderer="templates/form.pt", name="timeinput")
@demonstrate("Time Input")
def timeinput(self):
import datetime
class Schema(colander.Schema):
sometime = colander.SchemaNode(
colander.Time(),
validator=colander.Range(
min=datetime.time(12, 16),
min_err=_("${val} is earlier than earliest time ${min}"),
),
title="Time",
)
schema = Schema()
form = deform.Form(schema, buttons=("submit",))
return self.render_form(form)