On Wednesday 15 October 2008 16:26:24 Matt Wilson wrote: > I've got a fairly elaborate form that involves grids of checkboxes and > other stuff. > > I want to write a schema validator that process the form results into > more useful values. > > I thought I could just write a chained validator and read the > submitted values out of the field dict parameter, but it seems like > unless I use widgets to build up my form, those fields don't appear in > the validator. > > I know this is kind of vague.
You don't need to do that, you can use a formencode.Schema, and pass that as validators-argument to your @validate-decorator. You need of course make sure that your elaborate form is captured fully by the schema. But so far I haven't encountered a situation where that wasn't possible. Diez --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

