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
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
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
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
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
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_
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
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))',
8 matches
Mail list logo