diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-05-19 22:46:18 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-05-19 22:46:18 -0500 |
commit | b9e9610bfe613a421ac0c12148368dc8844e8366 (patch) | |
tree | e4528440b2c7626170680660a283fd08fe9f4d1f /mediagoblin/util.py | |
parent | dffa0b0983f971f19be62d69b1759168da82477d (diff) | |
download | mediagoblin-b9e9610bfe613a421ac0c12148368dc8844e8366.tar.lz mediagoblin-b9e9610bfe613a421ac0c12148368dc8844e8366.tar.xz mediagoblin-b9e9610bfe613a421ac0c12148368dc8844e8366.zip |
I think 30 is a good default number of items per page.
Diffstat (limited to 'mediagoblin/util.py')
-rw-r--r-- | mediagoblin/util.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mediagoblin/util.py b/mediagoblin/util.py index 254245df..d37d160e 100644 --- a/mediagoblin/util.py +++ b/mediagoblin/util.py @@ -297,6 +297,8 @@ def setup_gettext(locale): translations=this_gettext) +PAGINATION_DEFAULT_PER_PAGE = 30 + class Pagination(object): """ Pagination class for mongodb queries. @@ -305,7 +307,7 @@ class Pagination(object): get actual data slice through __call__(). """ - def __init__(self, page, cursor, per_page=2): + def __init__(self, page, cursor, per_page=PAGINATION_DEFAULT_PER_PAGE): """ Initializes Pagination |