allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jetm...@apache.org
Subject [5/6] allura git commit: [#7794] ticket:677 Always cast limit to int
Date Fri, 14 Nov 2014 11:55:53 GMT
[#7794] ticket:677 Always cast limit to int


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

Branch: refs/heads/ib/7794
Commit: 262f191fa8b75abcf5206702c4fef2638e396506
Parents: 04b39fd
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Fri Nov 14 08:55:49 2014 +0000
Committer: Igor Bondarenko <jetmind2@gmail.com>
Committed: Fri Nov 14 08:57:43 2014 +0000

----------------------------------------------------------------------
 Allura/allura/lib/app_globals.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/262f191f/Allura/allura/lib/app_globals.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/app_globals.py b/Allura/allura/lib/app_globals.py
index ac8bcdb..0564f75 100644
--- a/Allura/allura/lib/app_globals.py
+++ b/Allura/allura/lib/app_globals.py
@@ -392,7 +392,7 @@ class Globals(object):
                 limit = default
             else:
                 limit = c.user.get_pref('results_per_page') or default
-        return limit
+        return int(limit)
 
     def document_class(self, neighborhood):
         classes = ''


Mime
View raw message