[ckan-changes] [ckan/ckan] 29190a: Ensure page parameters are valid.

GitHub noreply at github.com
Wed Nov 19 16:39:34 UTC 2014


  Branch: refs/heads/2042-invalid-page-numbers
  Home:   https://github.com/ckan/ckan
  Commit: 29190a364324d6d6908a7caad265d89fd3ccba18
      https://github.com/ckan/ckan/commit/29190a364324d6d6908a7caad265d89fd3ccba18
  Author: Ross Jones <ross at servercode.co.uk>
  Date:   2014-11-19 (Wed, 19 Nov 2014)

  Changed paths:
    M ckan/controllers/feed.py
    M ckan/controllers/group.py
    M ckan/controllers/package.py
    M ckan/controllers/related.py
    M ckan/controllers/revision.py
    M ckan/controllers/tag.py
    M ckan/controllers/user.py
    M ckan/lib/alphabet_paginate.py
    M ckan/lib/base.py
    M ckan/tests/functional/test_group.py

  Log Message:
  -----------
  Ensure page parameters are valid.

Fixes #2042 by ensuring that:

- Invalid numbers aren't passed through to logic layer or paginator
- There is a default should an invalid number is passed.

Adds a _get_page_number() to the BaseController for re-use in all the
subclasses.




More information about the ckan-changes mailing list