Jim Steil ha scritto:
> Andrej wrote:
>   
>> Hi List,
>>
>> I ran across something odd: as described in the pagination docs
>> http://docs.turbogears.org/1.0/PaginateDecorator the
>> tg.paginate.href_next is not working. Neither does href_prev,
>> href_last or href_first. Should I file a bug or has something gone
>> wrong?
>>
>> Thank you,
>> -A
>>
>>
>>     
>>   
>>     
> Can you describe the problem you're experiencing?
>
>     -Jim
>
>   
I confirm the behavior described by Andrej. It doesn't work also for me.
I'm have to use paginate.current_page to navigate into the grid,

this doesn't work:
    ${tg.paginate.get_href(tg.paginate.href_first)}
    ${tg.paginate.get_href(tg.paginate.href_next) }
    ${tg.paginate.get_href(tg.paginate.href_prev) }
    ${tg.paginate.get_href(tg.paginate.href_last) }

this one works, instead:
    ${tg.paginate.get_href(tg.paginate.get_href(1)      }  #first page
    ${tg.paginate.get_href(tg.paginate.current_page + 1)}  #next page
    ${tg.paginate.get_href(tg.paginate.current_page - 1)}  #previous page
    ${tg.paginate.get_href(tg.paginate.page_count)      }  #last page

jo


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to