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