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 | {{{ |
| 45 | if "start" in self.request.vars: |
| 46 | start = int(self.request.vars["start"]) |
| 47 | elif "iDisplayStart" in self.request.vars: |
| 48 | # dataTables |
| 49 | start = int(self.request.vars["iDisplayStart"]) |
| 50 | else: |
| 51 | start = None |
| 52 | |
| 53 | if "limit" in self.request.vars: |
| 54 | limit = int(self.request.vars["limit"]) |
| 55 | elif "iDisplayLength" in self.request.vars: |
| 56 | # dataTables |
| 57 | limit = int(self.request.vars["iDisplayLength"]) |
| 58 | else: |
| 59 | limit = None |
| 60 | }}} |