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/19 15:01:32 UTC

[21/26] 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/0c272605
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/0c272605
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/0c272605

Branch: refs/heads/ib/7794
Commit: 0c27260537aca2628f900eb063dc4f6284969651
Parents: 053903f
Author: Igor Bondarenko <je...@gmail.com>
Authored: Fri Nov 14 08:55:49 2014 +0000
Committer: Igor Bondarenko <je...@gmail.com>
Committed: Tue Nov 18 11:46:23 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/0c272605/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 = ''