None
@view_config(renderer="templates/form.pt", name="nonrequiredfields")
@demonstrate("Non-Required Fields")
def nonrequiredfields(self):
class Schema(colander.Schema):
required = colander.SchemaNode(
colander.String(), description="Required Field"
)
notrequired = colander.SchemaNode(
colander.String(),
missing=unicode(""),
description="Unrequired Field",
)
schema = Schema()
form = deform.Form(schema, buttons=("submit",))
return self.render_form(form)