On 11/05/2006, at 18:22, mulicheng wrote:
> (...) I gather that you can't attach chained validators directly to  
> a form, but
> you can attach a Schema to a form.  I'm well on my way, thanks!

Yep, this is intentional. Better leave all validation responsability  
to FE's validators than to reimplement it in the widget code.

Many widget's will never generate any kind of input to your  
controller (DataGrid, Tabber, SyntaxHighlighter, etc..) so it's  
better to just plug the validator to input widgets rather than  
putting validator-like attributes in a all widgets.

Glad you're getting it :) Just ask if you have more troubles...

Alberto

P.S.

I remember from a previous post in this thread that one of the  
troubles you had was delegating form design to a designer, let me  
just point out that you can keep the template in a separate file:

Class MyForm(Form):
        ...
        template = "myapp.form_templates.my_form"

This way you can keep the designer safely away from the developer's  
code ;)

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to