No but a Rows object can be sliced

{{=db(db.auth_user.id==auth.user_id).select(db.auth_user.initials)
[0].initials}}

[0] is the same as .first() except that .first() returns None on empty
Rows.

On Jun 8, 4:56 pm, Jean Guy <[email protected]> wrote:
> Thank you!
>
> I was trying with index but fall on tuple at last...
> Like this :
> {{=db(db.auth_user.id
> ==auth.user_id).select(db.auth_user.initials).reponse[0][0]}}
> But tuple can't be sliced...
>
> :)
>
> Jonhy
>
> 2010/6/8 mdipierro <[email protected]>
>
>
>
> > On Jun 8, 4:02 pm, Jean Guy <[email protected]> wrote:
> > > Hello,
>
> > > This :
>
> > > {{=db(db.auth_user.id
> > ==auth.user_id).select(db.auth_user.initials).first().initials}}
>
> > > Return :
>
> > > auth_user.initials INITIALS
>
> > > I would have :
>
> > > INITIALS
>
> > > How can I do it?
>
> > > Jonhy

Reply via email to