None
@view_config(
renderer="templates/form.pt",
name="sequence_with_prototype_that_has_no_name",
)
@demonstrate("Sequence With Prototype that Has No Name")
def sequence_with_prototype_that_has_no_name(self):
class EmailMessage(colander.Schema):
subject = colander.SchemaNode(colander.String())
to = colander.SchemaNode(
colander.Sequence(),
colander.SchemaNode(colander.String(), name="foo"),
)
schema = EmailMessage()
form = deform.Form(schema, buttons=("submit",))
return self.render_form(form)