None
@view_config(renderer="templates/form.pt", name="textarea")
@demonstrate("Text Area Widget")
def textarea(self):
class Schema(colander.Schema):
text = colander.SchemaNode(
colander.String(),
validator=colander.Length(max=100),
widget=deform.widget.TextAreaWidget(rows=10, cols=60),
description="Enter some text",
)
schema = Schema()
form = deform.Form(schema, buttons=("submit",))
return self.render_form(form)