# HG changeset patch # User Denis Laxalde # Date 1486742123 -3600 # Node ID ddc05ce75319c6cbc07db5dbab3dcc7559b8cbf6 # Parent 950ce7d9f64277d7c0d3ff0ef2dd01ccfc6f9323 [pyramid] Include 'cubicweb.pyramid.predicates' where it is used It's only used in "rest_api" module. diff -r 950ce7d9f642 -r ddc05ce75319 cubicweb/pyramid/__init__.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') diff -r 950ce7d9f642 -r ddc05ce75319 cubicweb/pyramid/rest_api.py --- 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')