le 10.04.2009 04:32 Uwe C. Schroeder a écrit:
> Hi everyone,
> here's a question I couldn't find an answer to and I hope maybe someone here
> can help:
> I have a controller that returns a paginated set (think a forum topic with
> all
> the posts). I would like to immediately jump to the last page.
>
> Basically it works like this: I have a page that lists all topics and
> provides
> a link to the topic without any tg_paginate_xxx variables - which results in
> displaying the first page of the individual topic.
> Sine I don't think it's possible to provide a link to the last page of the
> topic without actually querying the database on how many posts there are, I
> thought I could influence the result in the controller method directly. So to
> say a controller method that always jumps to the last page of the resultset.
>
> Is there a way to do this?
>
>
I don't remember for 1.0 but with 1.1, if you have something like
@paginate('my_var')
def xxx(...)
the last page URL is /xxx?my_var_tgp_no=last
> Thanks for any input.
>
> Uwe
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---