from webhelpers.pagination import paginate,links

    def feed(self,id,page):
        c.feed=Feed.query.filter_by(id=id).one()
        c.feeds=c.feed.site.feeds
        paginator,c.posts=paginate(c.feed.posts,int(page),30)
        c.links=links.pagelist(paginator.current)
        return render("news/feed.htm")

On Sat, Apr 5, 2008 at 1:47 PM, Mike Orr <[EMAIL PROTECTED]> wrote:
> 2008/4/4 张沈鹏(电子科大 毕/就业倒计时...) <[EMAIL PROTECTED]>:
>
> > see picture in attachment
>  >
>  >   when I click 0 the links is 01...2345
>  >   when I click 1-4 the links is 0123
>  >   when I click 5 the links is 0123...45
>
>  Is this webhelpers.pagination or webhelpers.paginate?  Paginate is the
>  new one.  Pagination is deprecated.  I don't know about your problem,
>  though I've never done it starting at page 0 before.  I always start
>  at 1.
>
>  --
>  Mike Orr <[EMAIL PROTECTED]>
>
>  >
>



-- 
博客:http://zsp.javaeye.com/
个人网站:http://zsp007.com.cn/
电子科大,7月就要毕业了,何去何从...
双学位:生物医学工程+计算机科学与技术
 -- 张教主

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to