allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jetm...@apache.org
Subject [24/26] allura git commit: [#7794] ticket:686 Set default page size to 25
Date Wed, 19 Nov 2014 14:01:35 GMT
[#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/33d67a05
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/33d67a05
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/33d67a05

Branch: refs/heads/ib/7794
Commit: 33d67a0514867f1a69fc91bc690748ed168409db
Parents: 8811b27
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Tue Nov 18 11:57:02 2014 +0000
Committer: Igor Bondarenko <jetmind2@gmail.com>
Committed: Tue Nov 18 11:57:02 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/33d67a05/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


Mime
View raw message