Changes between Version 6 and Version 7 of ServerSidePagination


Ignore:
Timestamp:
01/20/10 03:00:29 (12 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ServerSidePagination

    v6 v7  
    1515{{{
    1616if request.vars.page and request.vars.pagesize:
    17     start = (request.vars.page - 1) * request.vars.pagesize
    18     stop = request.vars.page * request.vars.pagesize
     17    start = (int(request.vars.page) - 1) * int(request.vars.pagesize)
     18    stop = int(request.vars.page) * int(request.vars.pagesize)
    1919    response.s3.filter = (db['%s_%s' % (module, resource)].id > 0).select(limitby=(start, stop))
    2020}}}
     21Unfortunately query doesn't include the .select()
    2122
    2223Maybe look at the currently-unused {{{modules/webgrid.py}}}.