summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTim Laszlo <tim.laszlo@gmail.com>2010-10-18 11:34:24 -0500
committerTim Laszlo <tim.laszlo@gmail.com>2010-10-18 11:35:09 -0500
commit16807d819b63384a0f588b4ea881c7b043571875 (patch)
treefa9c5eac337b1709b7d64ca4c8a738d1aeb768ef /src
parente19cb1b654b393396d0c6f94691cb97e281a3408 (diff)
downloadbcfg2-16807d819b63384a0f588b4ea881c7b043571875.tar.gz
bcfg2-16807d819b63384a0f588b4ea881c7b043571875.tar.bz2
bcfg2-16807d819b63384a0f588b4ea881c7b043571875.zip
web_reports: use PATH_INFO instead of path in the resolver. fixes prefix problems.
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Reports/reports/templatetags/bcfg2_tags.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/Server/Reports/reports/templatetags/bcfg2_tags.py b/src/lib/Server/Reports/reports/templatetags/bcfg2_tags.py
index 2c27aab04..8285915bd 100644
--- a/src/lib/Server/Reports/reports/templatetags/bcfg2_tags.py
+++ b/src/lib/Server/Reports/reports/templatetags/bcfg2_tags.py
@@ -18,7 +18,7 @@ def page_navigator(context):
"""
fragment = dict()
try:
- path = context['request'].path
+ path = context['request'].META['PATH_INFO']
total_pages = int(context['total_pages'])
records_per_page = int(context['records_per_page'])
except KeyError, e:
@@ -96,7 +96,7 @@ def page_navigator(context):
@register.inclusion_tag('widgets/filter_bar.html', takes_context=True)
def filter_navigator(context):
try:
- path = context['request'].path
+ path = context['request'].META['PATH_INFO']
view, args, kwargs = resolve(path)
# Strip any page limits and numbers
@@ -179,7 +179,7 @@ class AddUrlFilter(template.Node):
def render(self, context):
link = '#'
try:
- path = context['request'].path
+ path = context['request'].META['PATH_INFO']
view, args, kwargs = resolve(path)
filter_value = self.filter_value.resolve(context, True)
if filter_value: