eschema view is gone away stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 29 Jan 2010 16:43:57 +0100
branchstable
changeset 4405 fe31bb5dada5
parent 4404 1736f29ae4e4
child 4406 b3f61c38526b
eschema view is gone away
web/views/urlrewrite.py
--- 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')),