You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by je...@apache.org on 2014/11/14 12:55:53 UTC

[5/6] allura git commit: [#7794] ticket:677 Always cast limit to int

[#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 <je...@gmail.com>
Authored: Fri Nov 14 08:55:49 2014 +0000
Committer: Igor Bondarenko <je...@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 = ''