you loop

{{for elem in jingle:}}
{{=elem.title}}
{{pass}}

or take a slice

{{for elem in jingle[1:2]:}}
{{=elem.title}}
{{pass}}

or pick one

{{elem=jingle[1]}}
{{=elem.title}}

On Sep 24, 2:43 am, b vivek <bvivek1...@gmail.com> wrote:
> Ok this is simple I know , but I am sort of not getting it. I have a table
> named 'spam' and I need the latest three entries of it .. so i do the
> below:-
>
> def home:
>
> latestthreespams=db().select(db.spam.ALL,orderby=~db.spam.created_on,limitby=(0,3))
>        return dict(jingle=latestthreespams)
>
> now I go to the view and try to access only the attributes of second spam of
> the three spam row objects sent.I was trying something like this in the view
> which obviosly does not work:-
>
> {{for elem in jingle(1):}}
> {{=elem.title}}
> {{pass}}

Reply via email to