[views] Ignore base class rule in custom req rewriter
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 28 Feb 2017 22:40:09 +0100
changeset 2443 75bd29a15521
parent 2442 50331aa0472a
child 2444 6dc0c6dbc771
[views] Ignore base class rule in custom req rewriter else we ends up evaluating cw's default rule several time, while in our case we only want to test our own rules.
cubicweb_seda/views/sedalib.py
--- a/cubicweb_seda/views/sedalib.py	Tue Feb 28 22:38:52 2017 +0100
+++ b/cubicweb_seda/views/sedalib.py	Tue Feb 28 22:40:09 2017 +0100
@@ -21,6 +21,7 @@
 
 
 class SEDAReqRewriter(urlrewrite.SimpleReqRewriter):
+    ignore_baseclass_rules = True
     rules = [
         ('/sedalib', dict(rql='Any X WHERE X is SEDAArchiveUnit, '
                               'NOT X seda_archive_unit P',