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

showing defaults / submitting form info

2008-04-06 Thread Jonathan Vanasco
i'm trying, without any luck, to fill a form with default values in my application we have --- class Form: """basic form validation""" pass class Controller: def index(self): print form @validator def submit(self): some advanced validation that is not appropr

Re: showing defaults / submitting form info

2008-04-06 Thread Wichert Akkerman
Previously Jonathan Vanasco wrote: > > i'm trying, without any luck, to fill a form with default values > > in my application we have > > --- > class Form: >"""basic form validation""" >pass > > class Controller: >def index(self): >print form > > @validator > d

Re: Routes 1.8 Release

2008-04-06 Thread Damjan
> Previously, Routes used a ';' mark for an action in map.resource, like: > /comments/4;preview > > With 1.8, its now: > /comments/4/preview What exactly is the reason for this? I'm asking since ";" seemed like a nice separator, and I've used it in some other projects. --~--~-~--~~---

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