None
@view_config(renderer="templates/form.pt", name="sequence_of_richtext")
@demonstrate("Sequence of Rich Text Widgets")
def sequence_of_richtext(self):
class Sequence(colander.SequenceSchema):
text = colander.SchemaNode(
colander.String(),
widget=deform.widget.RichTextWidget(),
description="Enter some text",
)
class Schema(colander.Schema):
texts = Sequence()
schema = Schema()
form = deform.Form(schema, buttons=("submit",))
return self.render_form(form)