diff options
author | Tim Laszlo <tim.laszlo@gmail.com> | 2010-10-18 11:34:24 -0500 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2010-11-02 20:35:18 -0500 |
commit | 966aa56675a92a7bb3a7f09daded03069ee4c1e8 (patch) | |
tree | 48ada171b844757b31c8afbd27396f5049514300 /src/lib | |
parent | 1fec89ad5d79845dcd779f3686b6b89c7a3b1b21 (diff) | |
download | bcfg2-966aa56675a92a7bb3a7f09daded03069ee4c1e8.tar.gz bcfg2-966aa56675a92a7bb3a7f09daded03069ee4c1e8.tar.bz2 bcfg2-966aa56675a92a7bb3a7f09daded03069ee4c1e8.zip |
web_reports: use PATH_INFO instead of path in the resolver. fixes prefix problems.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Server/Reports/reports/templatetags/bcfg2_tags.py | 6 |
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: |