On Friday 17 October 2008 06:07:02 Diez B. Roggisch wrote:

> You write your own schema for the field itself, ACSchema, with the two
> fields.
>
> class ACSchema(Schema):
>      text_field = AValidator()
>      hidden_field = AValidator()
>
> AutoCompletField(validator=ACSchema())
>
> You can of course add that to your above schema as well.
>
> That is what I *think* should be it. You need to remember that
> validators can be hierarchic, by means of schemas, and Schemas are
> validators themselves.

Cool!  Thanks.  May I humbly request/suggest that this be added as an example 
to http://docs.turbogears.org/1.0/FormValidationWithSchemas ?  It mentions 
that

    Conveniently Schema itself is a compound validator, which allows schemas
    to be nested.

but doesn't really say why you'd ever want to do that, so I pretty much 
glossed over that part.
-- 
Kirk Strauser

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

Reply via email to