None
@view_config(renderer="templates/form.pt", name="hiddenmissing")
@demonstrate("Hidden Widget (missing, representing an Integer)")
def hiddenmissing(self):
class Schema(colander.Schema):
title = colander.SchemaNode(colander.String())
number = colander.SchemaNode(
colander.Integer(),
widget=deform.widget.HiddenWidget(),
missing=colander.null,
)
schema = Schema()
form = deform.Form(schema, buttons=("submit",))
return self.render_form(form)