I started using colander in my pyramid project. Created a simple data model
mapping using colander
class DataModel(colander.MappingSchema):
user_count = colander.SchemaNode(colander.Integer())
expiration_date = colander.SchemaNode(colander.Date())
comment = colander.SchemaNode(colander.String())
How can I pass submited form data to this mapping ir order to validate it
without using deform? Is it possible to iterate over a validation errors?
model = DataModel()
if 'submit' request.POST:
form_data =request.POST.items()
???
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/pylons-discuss/991aaa8d-f540-4dc1-a32a-c72aad959e7c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.