allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [01/10] allura git commit: [#7794] ticket:686 Use page size pref on tracker main page
Date Wed, 19 Nov 2014 22:59:40 GMT
Repository: allura
Updated Branches:
  refs/heads/master f2baa55c7 -> f66f754ee


[#7794] ticket:686 Use page size pref on tracker main page


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

Branch: refs/heads/master
Commit: a756521d78d7eb83944bee2e023505ccc48a1694
Parents: f828804
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Tue Nov 18 11:50:23 2014 +0000
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Wed Nov 19 22:58:32 2014 +0000

----------------------------------------------------------------------
 ForgeTracker/forgetracker/tracker_main.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/a756521d/ForgeTracker/forgetracker/tracker_main.py
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/tracker_main.py b/ForgeTracker/forgetracker/tracker_main.py
index 9cc3596..b38bf1d 100644
--- a/ForgeTracker/forgetracker/tracker_main.py
+++ b/ForgeTracker/forgetracker/tracker_main.py
@@ -641,7 +641,7 @@ class RootController(BaseController, FeedController):
     @expose('jinja:forgetracker:templates/tracker/index.html')
     @validate(dict(deleted=validators.StringBool(if_empty=False),
                    filter=V.JsonConverter(if_empty={})))
-    def index(self, limit=25, columns=None, page=0, sort='ticket_num desc', deleted=False,
filter=None, **kw):
+    def index(self, limit=None, columns=None, page=0, sort='ticket_num desc', deleted=False,
filter=None, **kw):
         show_deleted = [False]
         if deleted and has_access(c.app, 'delete'):
             show_deleted = [False, True]
@@ -652,7 +652,7 @@ class RootController(BaseController, FeedController):
                                                  c.app.globals.not_closed_mongo_query,
                                                  c.app.globals.not_closed_query,
                                                  filter,
-                                                 sort=sort, limit=int(limit), page=page,
+                                                 sort=sort, limit=limit, page=page,
                                                  deleted={'$in': show_deleted},
                                                  show_deleted=deleted, **kw)
 


Mime
View raw message