[url publishing] evaluate url rewrite rules before rest path so one may easily override schema based urls
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 20 Jan 2011 10:10:22 +0100
changeset 6856 ac092197c099
parent 6855 84f600292b2e
child 6882 b5e34836f84e
[url publishing] evaluate url rewrite rules before rest path so one may easily override schema based urls
web/views/urlpublishing.py
--- 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()