You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2014/11/19 23:59:41 UTC
[02/10] 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/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 <je...@gmail.com>
Authored: Fri Nov 14 08:55:49 2014 +0000
Committer: Dave Brondsema <db...@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 = ''