Ian Wilson wrote: > Sorry my point is it is not working. Nothing is getting set. It > could be my wierd schema validator setup. Will validators change the > values before the form is displayed even before a submittal? > Can I give validators to each form element AND to the form itself? Like this: > form = wigets.TableForm(fields=[widgets.TextField(name="color", > validator=validators.String()], validator=MyFormSchema()])
Yes tou can, a schema will be generated based on the schema you provide to include all validators in the child widgets. If there's a clash between a widget's validator and the one you provide in the schema, the schema's will prevail. > I didn't want to list the form elements out in a schema AND the form > but I also need to use NestedVariables. You shouldn't need the NestedVariables decoder because all request params are automatically filtered by it by a CP filter. Try using a Fieldset or a RepeatingFieldSet widget in a form to see what I mean. Back to the non-working MultipleSelectField: You're doing the correct thing and it should work (tested it). If it doesn't, your custom validator might be doing something funky. If you send me the smallest quickstarted app that reproduces the problem I'll check it out ASAP. Alberto --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

