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='parent'),INPUT(_name='name')

in this case I cannot use IS_IN_DB because i need to filter the
results from the table

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to