Author: rjollos
Date: Tue Mar 12 01:52:52 2013
New Revision: 1455388

URL: http://svn.apache.org/r1455388
Log:
Fixes #457: The dictionary containing the query string was not being passed to 
the `Href` call in the the function replacement for `req.href.wiki` in 
`BloodhoundTheme.pre_process_request`. The result was that the query parameters 
would be omitted when the href string was constructed.

Modified:
    incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py

Modified: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py
URL: 
http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py?rev=1455388&r1=1455387&r2=1455388&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py (original)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py Tue Mar 12 
01:52:52 2013
@@ -206,7 +206,7 @@ class BloodhoundTheme(ThemeBase):
     def pre_process_request(self, req, handler):
         """Pre process request filter"""
         def hwiki(*args, **kw):
-            
+
             def new_name(name):
                 new_name = wiki.new_name(name)
                 if new_name != name:
@@ -215,11 +215,11 @@ class BloodhoundTheme(ThemeBase):
                         self._wiki_pages = wiki_admin.get_wiki_list()
                     if new_name in self._wiki_pages:
                         return new_name
-                return name 
-            
+                return name
+
             a = tuple([new_name(x) for x in args])
-            return req.href.__call__("wiki", *a)
-            
+            return req.href.__call__("wiki", *a, **kw)
+
         req.href.wiki = hwiki
         
         return handler


Reply via email to