Using Any compound validation

Richie Ward <[email protected]> Sun, 12 Jul 2009 20:20:04 +0100
Newsgroups gmane.comp.python.formencode
Message-ID <[email protected]>
I was trying to do something like this for my validation:
chained_validators = [Any(NotEmpty('modulenamelist'), NotEmpty('modulename'))]

But NotEmpty does not support specifying the field names?

I am trying to make something like Field A or Field B must have some
valid input in it but both must not be empty. One can be empty if the
other has valid input.

I found the Any compound validator and this seemed to be what I need
but as you can see I hit a brick wall.

-- 
Thanks, Richie Ward

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge