[pyramid] Include 'cubicweb.pyramid.predicates' where it is used
authorDenis Laxalde <denis.laxalde@logilab.fr>
Fri, 10 Feb 2017 16:55:23 +0100
changeset 11959 ddc05ce75319
parent 11958 950ce7d9f642
child 11960 36f463441764
[pyramid] Include 'cubicweb.pyramid.predicates' where it is used It's only used in "rest_api" module.
cubicweb/pyramid/__init__.py
cubicweb/pyramid/rest_api.py
--- a/cubicweb/pyramid/__init__.py	Fri Feb 10 16:33:16 2017 +0100
+++ b/cubicweb/pyramid/__init__.py	Fri Feb 10 16:55:23 2017 +0100
@@ -185,7 +185,6 @@
         config.include(name)
 
     config.include('cubicweb.pyramid.tools')
-    config.include('cubicweb.pyramid.predicates')
     config.include('cubicweb.pyramid.core')
     config.include('cubicweb.pyramid.syncsession')
 
--- a/cubicweb/pyramid/rest_api.py	Fri Feb 10 16:33:16 2017 +0100
+++ b/cubicweb/pyramid/rest_api.py	Fri Feb 10 16:55:23 2017 +0100
@@ -16,6 +16,7 @@
 
 
 def includeme(config):
+    config.include('.predicates')
     config.add_route(
         'cwentities', '/{etype}/*traverse',
         factory=ETypeResource.from_match('etype'), match_is_etype='etype')