web/views/urlrewrite.py
changeset 3451 6b46d73823f5
parent 3377 dd9d292b6a6d
child 3589 a5432f99f2d9
--- a/web/views/urlrewrite.py	Wed Sep 23 19:26:38 2009 +0200
+++ b/web/views/urlrewrite.py	Wed Sep 23 19:40:19 2009 +0200
@@ -198,9 +198,9 @@
                 continue
             if isinstance(inputurl, basestring):
                 if inputurl == uri:
-                    return callback(inputurl, uri, req, self.schema)
+                    return callback(inputurl, uri, req, self._cw.schema)
             elif inputurl.match(uri): # it's a regexp
-                return callback(inputurl, uri, req, self.schema)
+                return callback(inputurl, uri, req, self._cw.schema)
         else:
             self.debug("no schemabased rewrite rule found for %s", uri)
             raise KeyError(uri)