Re: Schema Introspection

Ian Bicking <[email protected]>
Newsgroups gmane.comp.python.formencode
Message-ID <[email protected]>
Christopher Singley wrote:
> Hello,
> 
> I've just started playing around with FormEncode.  I would like to interrogate 
> a previously-defined schema, and have it produce a list of names of the form 
> fields it's validating.  Invoking dir() on the schema isn't helping much.  
> How can I do it?

Just give a look at the code; it puts them all into a .fields dictionary.

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

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
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.