Thank you very much Richard and Anthony ! What's the easiest way to use these fields in the controller and the view ?
Archibald 2011/10/25 Anthony <abasta...@gmail.com> > Even better, use auth.settings.table_user_name instead of 'auth_user', in > case the user table has a name other than 'auth_user'. > > > On Monday, October 24, 2011 5:25:39 PM UTC-4, Richard wrote: > >> I think you have mistake : >> >> Field >> <http://web2py.com/book/default/docstring/Field>('tags','list:reference >> tag')) >> >> >> In that case "tag" is you table... >> >> So when use list:reference you don't use the db.auth_user just "auth_user" >> >> Also you don't specified the db.auth_user.username since username is not a >> default field of auth_user and you maybe want to specified the >> representation of the list:reference field since it is a integer and replace >> it by the name or email of the user... >> >> To do that you need to user .represent() >> >> I let you read futher in the book.. >> >> >> Richard >> >> On Mon, Oct 24, 2011 at 5:19 PM, Archibald Linx <archib...@gmail.com>wrote: >> >>> Dear Web2py users, >>> >>> Do you sometimes use fields which are lists of usernames ? >>> >>> How would you write that : Field('usernames','list:**reference >>> db.auth_user.username')) ? >>> >>> Thanks a lot, >>> Archibald >> >> >>