web/views/urlrewrite.py
changeset 4436 294e084f1263
parent 4350 9ad697216604
parent 4405 fe31bb5dada5
child 4706 6035e96b64dd
equal deleted inserted replaced
4434:101344a6ff9b 4436:294e084f1263
    81         ('/siteinfo', dict(vid='info')),
    81         ('/siteinfo', dict(vid='info')),
    82         ('/manage', dict(vid='manage')),
    82         ('/manage', dict(vid='manage')),
    83         ('/notfound', dict(vid='404')),
    83         ('/notfound', dict(vid='404')),
    84         ('/error', dict(vid='error')),
    84         ('/error', dict(vid='error')),
    85         ('/sparql', dict(vid='sparql')),
    85         ('/sparql', dict(vid='sparql')),
       
    86         # XXX should be case insensitive as 'create', but I would like to find another way than
       
    87         # relying on the etype_selector
    86         (rgx('/schema/([^/]+?)/?'),  dict(vid='primary', rql=r'Any X WHERE X is CWEType, X name "\1"')),
    88         (rgx('/schema/([^/]+?)/?'),  dict(vid='primary', rql=r'Any X WHERE X is CWEType, X name "\1"')),
    87         (rgx('/add/([^/]+?)/?'), dict(vid='creation', etype=r'\1')),
    89         (rgx('/add/([^/]+?)/?'), dict(vid='creation', etype=r'\1')),
    88         (rgx('/doc/images/(.+?)/?'), dict(vid='wdocimages', fid=r'\1')),
    90         (rgx('/doc/images/(.+?)/?'), dict(vid='wdocimages', fid=r'\1')),
    89         (rgx('/doc/?'), dict(vid='wdoc', fid=r'main')),
    91         (rgx('/doc/?'), dict(vid='wdoc', fid=r'main')),
    90         (rgx('/doc/(.+?)/?'), dict(vid='wdoc', fid=r'\1')),
    92         (rgx('/doc/(.+?)/?'), dict(vid='wdoc', fid=r'\1')),