Re: [web2py] list of usernames

2011-10-24 Thread Archibald Linx
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 > 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 Mond

Re: [web2py] list of usernames

2011-10-24 Thread Anthony
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 ('tags','list:refe

Re: [web2py] list of usernames

2011-10-24 Thread Richard Vézina
I think you have mistake : 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

[web2py] list of usernames

2011-10-24 Thread Archibald Linx
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