Changes between Version 12 and Version 13 of ServerSidePagination
- Timestamp:
- 01/20/10 03:32:54 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ServerSidePagination
v12 v13 19 19 20 20 === HTML Back-end implementation === 21 Patched the {{{models\01_RESTlike_Controller}}} to support {{{http://S3_PUBLIC_URL/module/resource?limit=x& page=y}}}21 Patched the {{{models\01_RESTlike_Controller}}} to support {{{http://S3_PUBLIC_URL/module/resource?limit=x&start=y}}} 22 22 {{{ 23 23 shn_list() 24 24 ... 25 if request.vars.limit:25 if request.vars.limit: 26 26 limit = int(request.vars.limit) 27 if request.vars.page: 28 page = int(request.vars.page) 29 start = (page - 1) * limit 30 stop = page * limit 31 limitby = (start, stop) 27 if request.vars.start: 28 start = int(request.vars.start) 29 limitby = (start, start + limit) 32 30 else: 33 31 limitby = (0, limit)