Look also into this other options with may be better
http://www.mengu.net/post/pagination-with-web2py
http://packages.python.org/web2py_utils/paginate.html
On Oct 1, 6:39 pm, Andrew Evans wrote:
> also there was a syntax error in that code don't know if you want to fix
> it..
>
> These two lines
also there was a syntax error in that code don't know if you want to fix
it..
These two lines needed to close the A function
backward=A('previous', _href=URL(r=request,args=[page-1])) if page else ''
forward=A('next', _href=URL(r=request,args=[page+1])) if len(rows) else
''
in the example they w
Ok that pagination works better.
But for some reason the last entry in the db is always cut any ideas?
probably something I am doing but would appreciate some help
*cheers
here is the code
thank you for the help thus far
def index():
if len(request.args):
page=int(request.args[0])
Try this:
http://www.web2py.com/AlterEgo/default/show/63
On Oct 1, 4:41 pm, Andrew Evans wrote:
> Hello I am trying to create some pagination for my site I am building.
> However this pagination is a bit messed up, (I forget exactly where I found
> it) when I click next it doesn't display anythi
4 matches
Mail list logo