> So following (http://www.mail-archive.com/[email protected]/
> msg22893.html) I extended Schema with allow_extra_fields = True.
> Putting all together in a @validate decorator as explained in the doc
> (http://turbogears.org/2.0/docs/main/Validation.html#schema-
> validation) leads to a new error:
>
> >> �...@validate(edit_po_form, error_handler=edit, validators=TGSchema())
OK, found the answer! (or a working solution, if not THE answer)
I put the TGSchema() in my widget and call de widget with:
edit_po_form = PurchaseOrderEditForm("edit_po_form",
validator=TGSchema)
It could be a good candidate for the RESTful documentation page ;-)
Regards
Cédric
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---