[url publishing] evaluate url rewrite rules before rest path so one may easily override schema based urls
--- a/web/views/urlpublishing.py Thu Jan 20 10:08:01 2011 +0100
+++ b/web/views/urlpublishing.py Thu Jan 20 10:10:22 2011 +0100
@@ -156,7 +156,7 @@
<etype>[[/<attribute name>]/<attribute value>]*
"""
- priority = 2
+ priority = 3
def evaluate_path(self, req, parts):
if not (0 < len(parts) < 4):
@@ -214,7 +214,8 @@
URL rewrite rule definitions are stored in URLRewriter objects
"""
- priority = 3
+ priority = 2
+
def evaluate_path(self, req, parts):
# uri <=> req._twreq.path or req._twreq.uri
uri = req.url_unquote('/' + '/'.join(parts))
@@ -236,6 +237,7 @@
<any evaluator path>/<action>
"""
priority = 4
+
def evaluate_path(self, req, parts):
if len(parts) < 2:
raise PathDontMatch()