--- 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)