Why are you putting the page number in a list? If you do [1+1] in python 
you will get [2] which is a list with a 2 inside.

What error are you getting? Can I see some controller code? It seems you 
have a request.vars.page and also a 'page' returned by the controller.

Would it not be simpler to do this:

{{page = request.vars.pop('page', 0)}}
{{if page > 0:}}
    {{=SPAN(A(T('Previous'), _href=URL(vars=dict(page=page-1, 
**request.vars))))}}
{{pass}}
{{if len(rows) == items_per_page:}}
    {{=SPAN(A(T('Next'), _href=URL(vars=dict(page=page+1, 
**request.vars))))}}
{{pass}}


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to