On 27 Feb, 17:13, Jorge Godoy <[EMAIL PROTECTED]> wrote: > "Mikael Jansson" <[EMAIL PROTECTED]> writes: > > Now, most of these have not_empty=True set as a condition in their > > validators. Which is good when creating a new object. When I want to > > edit them, I set add a dict(disabled='disabled') for certain fields. > > However, that makes them disappear from the input! > > > Why is this, and what can I do about it if I still want to re-use my > > forms? > > The browser won't spend bandwidth sending information from disabled fields. > If you said they're disabled, why should they be sent again? Their value > remains the same or isn't interesting on the context the form was submitted. > > To use the same form you'll have to use a different validation schema. There > you omit the unneeded fields. > Excellent! Wasn't thinking about those at all; I've just followed the validator-on-widget-approach.
Thanks, Mikael > -- > 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 -~----------~----~----~----~------~----~------~--~---

