summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTim Laszlo <tim.laszlo@gmail.com>2010-10-18 12:40:54 -0500
committerSol Jerome <sol.jerome@gmail.com>2010-11-02 20:35:18 -0500
commitd17fedf68c947c3ada40b441d32c8d3f185028f9 (patch)
treeab59e23997285ab70e26c2964388358e9e4e1da5 /src
parent8ec06a41bf6221238c4559a14c7506148e5d40c7 (diff)
downloadbcfg2-d17fedf68c947c3ada40b441d32c8d3f185028f9.tar.gz
bcfg2-d17fedf68c947c3ada40b441d32c8d3f185028f9.tar.bz2
bcfg2-d17fedf68c947c3ada40b441d32c8d3f185028f9.zip
web_reports: more PATH_INFO fixes
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Reports/reports/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Server/Reports/reports/views.py b/src/lib/Server/Reports/reports/views.py
index a061a3964..00d35c092 100644
--- a/src/lib/Server/Reports/reports/views.py
+++ b/src/lib/Server/Reports/reports/views.py
@@ -46,7 +46,7 @@ def timeview(fn):
if cal_date.find(' ') > -1:
fmt += " %H:%M"
timestamp = datetime(*strptime(cal_date, fmt)[0:6])
- view, args, kw = resolve(request.path)
+ view, args, kw = resolve(request.META['PATH_INFO'])
kw['year'] = "%0.4d" % timestamp.year
kw['month'] = "%02.d" % timestamp.month
kw['day'] = "%02.d" % timestamp.day
@@ -367,7 +367,7 @@ def prepare_paginated_list(request, context, paged_list, page=1, max_results=25)
if page > total_pages:
# If we passed beyond the end send back
try:
- view, args, kwargs = resolve(request.path)
+ view, args, kwargs = resolve(request.META['PATH_INFO'])
kwargs['page_number'] = total_pages
raise PaginationError, HttpResponseRedirect( reverse(view, kwargs=kwargs) )
except (Resolver404, NoReverseMatch, ValueError):