Re: [web2py] Re: pagination previous and next on the controller

2011-05-15 Thread Stifan Kristi
thank you so much for your hints and pointers, pbreit. i've already read the url, but still don't understand, what is the intent of the url. but i get it what you've said, again thank you very much. On Mon, May 16, 2011 at 12:44 AM, pbreit wrote: > You could check out this approach: > http://pac

Re: [web2py] Re: pagination previous and next on the controller

2011-05-15 Thread pbreit
You could check out this approach: http://packages.python.org/web2py_utils/paginate.html {{ }} *ONLY* work in views. The other thing you could consider if you want to put it in a controller, model or module is using HTML tag helpers like this: if page: previous = A('previous', _href=UR

Re: [web2py] Re: pagination previous and next on the controller

2011-05-15 Thread Stifan Kristi
i've already tried to moved curly brackets {{ }} in the controllers and still gettin an error, my intention is because all of my views is using pagination and i want to simplified it to just put on the centralize db functions. is there any ways to do this? thank you so much On Sun, May 15, 2011 at

[web2py] Re: pagination previous and next on the controller

2011-05-14 Thread pbreit
You don't put {{ and }} in controllers. Just do it like it is in the book. HTML typically belongs in the view.