web/views/apacherewrite.py
changeset 1936 c5af2fbda5b6
parent 1802 d628defebc17
child 1977 606923dff11b
--- a/web/views/apacherewrite.py	Mon May 25 22:21:13 2009 +0200
+++ b/web/views/apacherewrite.py	Mon May 25 22:26:05 2009 +0200
@@ -87,7 +87,8 @@
     id = 'urlrewriter'
     rules = []
 
-    def rewrite(self, host, path):
+    def rewrite(self, host, path, req):
+        self.req = req
         for cond in self.rules:
             if cond.match(host=host, path=path):
                 return cond.process(path)