web/views/apacherewrite.py
changeset 2000 bcb9a55a89e0
parent 1977 606923dff11b
child 3408 c92170fca813
child 4212 ab6573088b4a
--- a/web/views/apacherewrite.py	Fri May 29 10:49:01 2009 +0200
+++ b/web/views/apacherewrite.py	Fri May 29 12:04:23 2009 +0200
@@ -88,9 +88,11 @@
     id = 'urlrewriter'
     rules = []
 
+    def get_rules(self, req):
+        return self.rules
+
     def rewrite(self, host, path, req):
-        self.req = req
-        for cond in self.rules:
+        for cond in self.get_rules(req):
             if cond.match(host=host, path=path):
                 return cond.process(path)
         return path