Drop useless rgx call in URL path
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 22 Feb 2017 21:36:20 +0100
changeset 131 98432b541113
parent 126 79cf56fbfb1b
child 132 aca5be11649a
Drop useless rgx call in URL path Those are not regular expression but bare string.
views/__init__.py
--- a/views/__init__.py	Fri Feb 17 16:03:47 2017 +0100
+++ b/views/__init__.py	Wed Feb 22 21:36:20 2017 +0100
@@ -65,10 +65,10 @@
 
 class SherpaReqRewriter(urlrewrite.SimpleReqRewriter):
     rules = [
-        (urlrewrite.rgx('/'), dict(vid='sherpa.index')),
-        (urlrewrite.rgx('/project'), dict(vid='sherpa.project')),
-        (urlrewrite.rgx('/utilisation'), dict(vid='sherpa.utilisation')),
-        (urlrewrite.rgx('/seda'), dict(vid='sherpa.seda')),
+        ('/', dict(vid='sherpa.index')),
+        ('/project', dict(vid='sherpa.project')),
+        ('/utilisation', dict(vid='sherpa.utilisation')),
+        ('/seda', dict(vid='sherpa.seda')),
     ]