[web2py] Re: Problem with Select OPtion

2011-05-09 Thread Anthony
On Monday, May 9, 2011 6:22:12 PM UTC-4, luifran wrote: > > This work fine: > def combo(): > usuarios=db(db.auth_user.registration_key=='pending').select() > form = (SELECT([OPTION(usuarios[0].username, > _value=usuarios[0].id) for texto in > usuarios],_name='combo')) > retur

[web2py] Re: Problem with Select OPtion

2011-05-09 Thread pbreit
I usually see it like this: "form = FORM(SELECT..." http://web2py.com/book/default/chapter/07#FORM