On 3/21/06, Michele Cella <[EMAIL PROTECTED]> wrote:
> In r981 I've added support for propagating the generated schema (the
> one used for validation) to all widgets, this allows every widget to
> sync it's self.validator to the one that will be really used, without
> this a widget could have a validator=None but a validator=Int()
> declared on an upper level schema for example leading to inconsistency.
>
> This also simplifies a the is_required management as you can see.
>
> Opinions?
>
> I do that only if self._locked is False, otherwise we fail silently,
> should we emit a warning to say that you're probably doing something
> wrong (like generating a Form on the fly with some already used, in
> another request, fields?).

If it's illegal behavior that is likely to cause weird problems, I'd
recommend not failing silently... let the exception through so that
someone can spot it quickly before odd, hard to explain behavior
occurs.

Kevin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" 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-trunk
-~----------~----~----~----~------~----~------~--~---

Reply via email to