allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [02/10] allura git commit: [#7794] ticket:677 Always cast limit to int
Date Wed, 19 Nov 2014 22:59:41 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/95fef546
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/95fef546
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/95fef546

Branch: refs/heads/master
Commit: 95fef546dc532c6cd7b83acb8fe96480aaae4874
Parents: fa8a9e4
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Fri Nov 14 08:55:49 2014 +0000
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Wed Nov 19 22:58:32 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/95fef546/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