You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2014/11/19 23:59:48 UTC

[09/10] allura git commit: [#7794] ticket:686 Set default page size to 25

[#7794] ticket:686 Set default page size to 25


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/c0841459
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/c0841459
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/c0841459

Branch: refs/heads/master
Commit: c0841459d527bfc063ebd474610ea070db42c721
Parents: a756521
Author: Igor Bondarenko <je...@gmail.com>
Authored: Tue Nov 18 11:57:02 2014 +0000
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Wed Nov 19 22:58:33 2014 +0000

----------------------------------------------------------------------
 Allura/allura/lib/app_globals.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/c0841459/Allura/allura/lib/app_globals.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/app_globals.py b/Allura/allura/lib/app_globals.py
index 0564f75..8435f0f 100644
--- a/Allura/allura/lib/app_globals.py
+++ b/Allura/allura/lib/app_globals.py
@@ -380,13 +380,13 @@ class Globals(object):
     def credentials(self):
         return Credentials.get()
 
-    def handle_paging(self, limit, page, default=50):
+    def handle_paging(self, limit, page, default=25):
         limit = self.manage_paging_preference(limit, default)
         page = max(int(page), 0)
         start = page * int(limit)
         return (limit, page, start)
 
-    def manage_paging_preference(self, limit, default=50):
+    def manage_paging_preference(self, limit, default=25):
         if not limit:
             if c.user in (None, M.User.anonymous()):
                 limit = default