Question on this behavior: If a field that has no validator is left blank (like the ones below), would the save function receive a blank string of that name, or would it simply not receive a variable of that name at all?
Thanks, -- Jerry On Apr 20, 3:08 pm, Jorge Godoy <[EMAIL PROTECTED]> wrote: > "Ian Wilson" <[EMAIL PROTECTED]> writes: > > Well it doesn't really make sense to have positional arguments when > > you have fields that are not required, which could be the problem: > > > ... > > fax = widgets.TextField(label="Fax") > > email = widgets.TextField(label="Email") > > ... > > You can declare defaults on validators (I usually use 'if_empty=None' as > default when I don't want a value for ommited fields on my database). > > -- > Jorge Godoy <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

