summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Reports/reports
diff options
context:
space:
mode:
authorTim Laszlo <tim.laszlo@gmail.com>2010-10-18 12:40:54 -0500
committerTim Laszlo <tim.laszlo@gmail.com>2010-10-18 12:40:54 -0500
commit9e9edecaee3e0cdddd3d386c9fe5246b057aa0a6 (patch)
tree6649c9021d6ce0b7fa1821f1fd8bd546114cd08e /src/lib/Server/Reports/reports
parent785724e84f5ecefcdbda789dfadf7f08e29f1303 (diff)
downloadbcfg2-9e9edecaee3e0cdddd3d386c9fe5246b057aa0a6.tar.gz
bcfg2-9e9edecaee3e0cdddd3d386c9fe5246b057aa0a6.tar.bz2
bcfg2-9e9edecaee3e0cdddd3d386c9fe5246b057aa0a6.zip
web_reports: more PATH_INFO fixes
Diffstat (limited to 'src/lib/Server/Reports/reports')
-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):