Re: [web2py] validator that creates select with options from list of tuples?

2010-01-26 Thread Thadeus Burgess
IS_IN_DB can use a query can't it? -Thadeus On Tue, Jan 26, 2010 at 3:46 PM, selecta wrote: > Is there a validator that creates a select with options from a list of > tuples > > what I want do do is > Field("folder","integer",requires = IS_IN_TUPLELIST([('myfolder',12), > ('subfoler',23)]))

[web2py] validator that creates select with options from list of tuples?

2010-01-26 Thread selecta
Is there a validator that creates a select with options from a list of tuples what I want do do is Field("folder","integer",requires = IS_IN_TUPLELIST([('myfolder',12), ('subfoler',23)])) so that is creates SELECT([OPTION(name,_value=id) for name,id in [('myfolder',12), ('subfoler',23)] ],_name='