Re: Partial Validation, Partially Validated data

Ian Bicking <[email protected]>
Newsgroups gmane.comp.python.formencode
Message-ID <[email protected]>
Ian Wilson wrote:
> For most forms I make one giant schema that validates the entire form
> at submission.  If I use ajax style validation per field is there a
> way I can use the large schema to do partial validation of just that
> field easily ?  I tried setting ignore_key_missing=True but I have to
> set it on each sub schema which seems kind of impractical but maybe I
> could make two different schemas from one by messing around with the
> internals...?  Any insight would be much appreciated.

You should just go right into the schema and get the field you want to 
validate?  I.e., my_scheme.fields['age'].to_python(value)


-- 
Ian Bicking : [email protected] : http://blog.ianbicking.org
             : Write code, do good : http://topp.openplans.org/careers

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.