On 9 jun, 00:40, mdipierro <[email protected]> wrote:
> something like this?
>
> items=[('key1','label1'), ('key2','label2')]
> options=[OPTION(v,_value=k) for (k,v) in items]
> keys=[k for (k,v) in items]
>
> SELECT(*options,_name='selector',value='key1',requires=IS_IN_SET
> (keys))
>

Yes, thank
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to