Yes

format='%(first_name)s %(last_name)s'
db.vote.auth_user_id.requires=IS_IN_DB(db,'auth_user.id',format)

On Feb 13, 11:27 am, "Sebastian E. Ovide" <[email protected]>
wrote:
> Hi All,
>
> with IS_IN_DB it possible to display a column of a table in a drop down, say
> for example "username". In some occations it is required to display more
> than one column (As we use gluon.tools.Auth, we need to display the two
> columns "first_name" and "last_name"). Is it possible to do that with
> IS_IN_DB ? I would aspect some syntax like this:
>
> db.vote.auth_user_id.requires=IS_IN_DB(db,'auth_user.id
> ','auth_user.first_name','auth_user.last_name')
>
> thanks
> ----------------------------
> Sebastian E. Ovide
--~--~---------~--~----~------------~-------~--~----~
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