changeset 11968 | bb0dfc7d2d0e |
parent 11967 | 83739be20fab |
child 11969 | 2fb941d12d74 |
--- a/cubicweb/pyramid/__init__.py Fri Feb 10 17:13:44 2017 +0100 +++ b/cubicweb/pyramid/__init__.py Tue Feb 21 08:54:20 2017 +0100 @@ -166,6 +166,13 @@ return wsgi_application_from_cwconfig(cwconfig) +def pyramid_app(global_config, **settings): + """Return a Pyramid WSGI application bound to a CubicWeb repository.""" + config = Configurator(settings=settings) + config.include('cubicweb.pyramid') + return config.make_wsgi_app() + + def includeme(config): """Set-up a CubicWeb instance.