web/views/urlrewrite.py
changeset 4045 f4a52abb6f4f
parent 3890 d7a270f50f54
child 4252 6c4f109c2b03
--- a/web/views/urlrewrite.py	Tue Dec 08 16:46:56 2009 +0100
+++ b/web/views/urlrewrite.py	Tue Dec 08 16:50:36 2009 +0100
@@ -207,9 +207,9 @@
                 continue
             if isinstance(inputurl, basestring):
                 if inputurl == uri:
-                    return callback(inputurl, uri, req, self._cw.schema)
+                    return callback(inputurl, uri, req, self._cw.vreg.schema)
             elif inputurl.match(uri): # it's a regexp
-                return callback(inputurl, uri, req, self._cw.schema)
+                return callback(inputurl, uri, req, self._cw.vreg.schema)
         else:
             self.debug("no schemabased rewrite rule found for %s", uri)
             raise KeyError(uri)