Changes between Version 20 and Version 21 of ServerSidePagination


Ignore:
Timestamp:
01/20/10 04:05:49 (15 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ServerSidePagination

    v20 v21  
    4040=== JSON Back-end implementation ===
    4141 * Support already present in {{{modules\s3xrc.py}}}
    42  * {{{http://S3_PUBLIC_URL/module/resource.json?limit=x&start=y}}}
     42  * {{{http://S3_PUBLIC_URL/module/resource.json?limit=x&start=y}}}
     43 * needs patching for dataTables-expectationsL
     44{{{
     45if "start" in self.request.vars:
     46    start = int(self.request.vars["start"])
     47elif "iDisplayStart" in self.request.vars:
     48    # dataTables
     49    start = int(self.request.vars["iDisplayStart"])
     50else:
     51    start = None
     52
     53if "limit" in self.request.vars:
     54    limit = int(self.request.vars["limit"])
     55elif "iDisplayLength" in self.request.vars:
     56    # dataTables
     57    limit = int(self.request.vars["iDisplayLength"])
     58else:
     59    limit = None
     60}}}
    4361
    4462=== HTML Back-end implementation ===