> I believe you can say validators=<someschema> and the schema gets all
> of the values, not just a single value.

I tried this, but could not get it to work.  No validation and no
errors.  I'm working with revision 527.

class FormSchema(formencode.Schema):
    title = validators.PlainText(not_empty=True)
    notes = validators.PlainText(not_empty=True)
    reviewer = validators.Int(not_empty=True)

@turbogears.expose(inputform=search_form, validators=FormSchema)

Aside from this instance, I've been testing with form widgets and
validation.  What I think is missing is for a form widget to accept a
Formencode Schema.  I think this would be the most straight forward way
to construct a form widget with validation.

Reply via email to