None
@view_config(renderer="templates/form.pt", name="sequence_of_fileuploads")
@demonstrate("Sequence of File Upload Widgets")
def sequence_of_fileuploads(self):
class Sequence(colander.SequenceSchema):
upload = colander.SchemaNode(
deform.FileData(),
widget=deform.widget.FileUploadWidget(tmpstore),
)
class Schema(colander.Schema):
uploads = Sequence()
schema = Schema()
form = deform.Form(schema, buttons=("submit",))
return self.render_form(form, success=tmpstore.clear)