only validate some field if another is set to something

"Elvelind Grandin" <[email protected]>
Newsgroups gmane.comp.python.formencode
Message-ID <[email protected]>
Hi.

I want to only validate certain fields if another is a certain value.

http://paste.turbogears.org/paste/1178

I use this code and it works fine.

the problem is that the _to_python method for the NiceHTML validator
is called, but the returned argument is ignored.

-- 
cheers
    elvelind grandin

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
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.