OneOf with deferred call on function?

Iain Duncan <[email protected]> Fri, 09 Jan 2009 21:21:51 -0800
Newsgroups gmane.comp.python.formencode
Message-ID <1231564911.5031.264.camel@xornot-home>
Hi folks, I'm wanting to do the following

validator = OneOf( [ <list generated at call time> ] )

I was hoping this would work

validator = OneOf( get_valid_options )

but it doesn't. Is there something I'm missing to do the above?

Thanks
Iain


------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB