pyramid_cubicweb/predicates.py
changeset 11601 23a62d151382
parent 11600 473754eac7c1
--- a/pyramid_cubicweb/predicates.py	Fri Jul 24 13:39:18 2015 +0200
+++ b/pyramid_cubicweb/predicates.py	Wed Sep 16 16:39:53 2015 +0200
@@ -16,3 +16,7 @@
     def __call__(self, info, request):
         return info['match'][self.matchname].lower() in \
             request.registry['cubicweb.registry'].case_insensitive_etypes
+
+
+def includeme(config):
+    config.add_route_predicate('match_is_etype', MatchIsETypePredicate)