web/views/urlrewrite.py
branchstable
changeset 4405 fe31bb5dada5
parent 4212 ab6573088b4a
child 4436 294e084f1263
--- a/web/views/urlrewrite.py	Thu Jan 28 14:30:05 2010 +0100
+++ b/web/views/urlrewrite.py	Fri Jan 29 16:43:57 2010 +0100
@@ -83,7 +83,9 @@
         ('/notfound', dict(vid='404')),
         ('/error', dict(vid='error')),
         ('/sparql', dict(vid='sparql')),
-        (rgx('/schema/([^/]+?)/?'),  dict(vid='eschema', rql=r'Any X WHERE X is CWEType, X name "\1"')),
+        # XXX should be case insensitive as 'create', but I would like to find another way than
+        # relying on the etype_selector
+        (rgx('/schema/([^/]+?)/?'),  dict(vid='primary', rql=r'Any X WHERE X is CWEType, X name "\1"')),
         (rgx('/add/([^/]+?)/?'), dict(vid='creation', etype=r'\1')),
         (rgx('/doc/images/(.+?)/?'), dict(vid='wdocimages', fid=r'\1')),
         (rgx('/doc/?'), dict(vid='wdoc', fid=r'main')),