[web2py] Re: auth_user represent

2011-11-05 Thread Bianca Cadaveri
Thank you very much. BC On 5 nov, 18:00, Anthony wrote: > On Saturday, November 5, 2011 12:15:02 PM UTC-4, Bianca Cadaveri wrote: > > > May I ask one more question ? > > > > web2py will pass the Row object for the record as the dictionary (the > > Row class inherits from dictionary, so functions

[web2py] Re: auth_user represent

2011-11-05 Thread Anthony
On Saturday, November 5, 2011 12:15:02 PM UTC-4, Bianca Cadaveri wrote: > > May I ask one more question ? > > > web2py will pass the Row object for the record as the dictionary (the > Row class inherits from dictionary, so functions as a dictionary in > this > case) > Several rows (i.e., the r

Re: [web2py] Re: auth_user represent

2011-11-05 Thread Bruno Rocha
it is a list of dictionaries. http://zerp.ly/rochacbruno Em 05/11/2011 14:15, "Bianca Cadaveri" escreveu: > May I ask one more question ? > > > web2py will pass the Row object for the record as the dictionary (the > Row class inherits from dictionary, so functions as a dictionary in > this > cas

[web2py] Re: auth_user represent

2011-11-05 Thread Bianca Cadaveri
May I ask one more question ? > web2py will pass the Row object for the record as the dictionary (the Row class inherits from dictionary, so functions as a dictionary in this case) When several rows are returned from a database query, is the result a dictionnary of dictionnaries ? I thank you in

[web2py] Re: auth_user represent

2011-11-04 Thread Bianca Cadaveri
Thank you Anthony !!! BC On 4 nov, 01:52, Anthony wrote: > On Thursday, November 3, 2011 8:31:10 PM UTC-4, Bianca Cadaveri wrote: > > > Thank you very much to both of you. > > > Is this way to write formats specific to Web2py : '%(first_name) % > > (last_name) (%(id))' ? > > > I have never met b

[web2py] Re: auth_user represent

2011-11-03 Thread Anthony
On Thursday, November 3, 2011 8:31:10 PM UTC-4, Bianca Cadaveri wrote: > > Thank you very much to both of you. > > Is this way to write formats specific to Web2py : '%(first_name) % > (last_name) (%(id))' ? > > I have never met before "%" followed by "()". > > It means : write "first_name last_

[web2py] Re: auth_user represent

2011-11-03 Thread Bianca Cadaveri
Thank you very much to both of you. Is this way to write formats specific to Web2py : '%(first_name) % (last_name) (%(id))' ? I have never met before "%" followed by "()". It means : write "first_name last_name" corresponding to "id", right ? BC On 3 nov, 22:40, Anthony wrote: > If you specif

[web2py] Re: auth_user represent

2011-11-03 Thread Anthony
If you specifically want the username from the auth_user table: db(db.auth_user.id==id).select().first().username or the shortcut version: db.auth_user[id].username If you want to use the 'format' attribute of the auth_user table (which I think defaults to '%(first_name) %(last_name) (%(id))',