Re: webhelpers 0.6 pagination links problem ?

2008-04-11 Thread Christoph Haas
On Montag, 7. April 2008, ZhangShen Peng(Uestc graduating...) wrote: > can you give me a Mercurial account for webhelpers? > so many bugs . > > On Mon, Apr 7, 2008 at 4:42 PM, ZhangShen Peng(Uestc graduating...) > > <[EMAIL PROTECTED]> wrote: > > Oh ,opss. > > > > who delete the _S

Re: webhelpers 0.6 pagination links problem ?

2008-04-07 Thread Ben Bangert
On Apr 7, 2008, at 1:52 AM, ZhangShen Peng(Uestc graduating...) wrote: can you give me a Mercurial account for webhelpers? so many bugs . I'll happilly accept PEP8 compliant Mercurial bundles of changes. I should note that this change that broke paginate did creep in a commit or tw

Re: webhelpers 0.6 pagination links problem ?

2008-04-07 Thread ZhangShen Peng(Uestc graduating...)
can you give me a Mercurial account for webhelpers? so many bugs . On Mon, Apr 7, 2008 at 4:42 PM, ZhangShen Peng(Uestc graduating...) <[EMAIL PROTECTED]> wrote: > Oh ,opss. > > who delete the _SQLAlchemyQuery in source ??? > I merge my source to lastest , and find _SQLAlchemyQ

Re: webhelpers 0.6 pagination links problem ?

2008-04-07 Thread ZhangShen Peng(Uestc graduating...)
Oh ,opss. who delete the _SQLAlchemyQuery in source ??? I merge my source to lastest , and find _SQLAlchemyQuery is lost so there is a error -class _SQLAlchemyQuery(object): - -"""Iterable that allows to get slices from an SQLAlchemy Query object.""" - -de

Re: webhelpers 0.6 pagination links problem ?

2008-04-06 Thread ZhangShen Peng(Uestc graduating...)
def feed(self,id,page): c.feed=Feed.query.filter_by(id=id).one() c.feeds=c.feed.site.feeds c.posts=c.feed.posts c.links=Page(c.posts,int(page),30).pager(link_var="page") return render("news/feed.htm") oh ,thanks,now use like this is ok On Mon, Apr 7, 2

Re: webhelpers 0.6 pagination links problem ?

2008-04-06 Thread Ben Bangert
On Apr 4, 2008, at 10:51 PM, 张沈鹏(电子科大 毕/就业倒计 时...) wrote: 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=lin

Re: webhelpers 0.6 pagination links problem ?

2008-04-06 Thread ZhangShen Peng(Uestc graduating...)
I surely this is bug in nightly version webhelpers I fixed it by modify links.py see the attachment 2008/4/5 张沈鹏(电子科大 毕/就业倒计时...) <[EMAIL PROTECTED]>: > from webhelpers.pagination import paginate,links > > def feed(self,id,page): > c.feed=Feed.query.filter_by(id=id).one() > c

Re: webhelpers 0.6 pagination links problem ?

2008-04-04 Thread 张沈鹏(电子科大 毕/就业倒计时...)
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("new

Re: webhelpers 0.6 pagination links problem ?

2008-04-04 Thread Mike Orr
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

webhelpers 0.6 pagination links problem ?

2008-04-04 Thread 张沈鹏(电子科大 毕/就业倒计时...)
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 -- 博客:http://zsp.javaeye.com/ 个人网站:http://zsp007.com.cn/ 电子科大,7月就要毕业了,何去何从... 双学位:生物医学工程+计算机科学与技术 -- 张教主 -- 博客:http://zsp.javaeye.com/ 个人网站:http: