[pyramid] Include 'cubicweb.pyramid.predicates' where it is used
It's only used in "rest_api" module.
--- 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')