None
@view_config(renderer="templates/form.pt", name="checkedpassword")
@demonstrate("Checked Password Widget")
def checkedpassword(self):
class Schema(colander.Schema):
password = colander.SchemaNode(
colander.String(),
validator=colander.Length(min=5),
widget=deform.widget.CheckedPasswordWidget(),
description="Type your password and confirm it",
)
schema = Schema()
form = deform.Form(schema, buttons=("submit",))
return self.render_form(form)