diff -r 48b8fbc88209 -r 950ce7d9f642 cubicweb/pyramid/__init__.py --- a/cubicweb/pyramid/__init__.py Wed Feb 08 17:49:25 2017 +0100 +++ b/cubicweb/pyramid/__init__.py Fri Feb 10 16:33:16 2017 +0100 @@ -12,11 +12,9 @@ from ConfigParser import SafeConfigParser -def make_cubicweb_application(cwconfig, settings=None): - """ - Create a pyramid-based CubicWeb instance from a cubicweb configuration. - - It is initialy meant to be used by the 'pyramid' command of cubicweb-ctl. +def config_from_cwconfig(cwconfig, settings=None): + """Return a Pyramid Configurator instance built from a CubicWeb config and + Pyramid-specific configuration files (pyramid.ini). :param cwconfig: A CubicWeb configuration :returns: A Pyramid config object @@ -74,7 +72,7 @@ :returns: A fully operationnal WSGI application """ - config = make_cubicweb_application(cwconfig) + config = config_from_cwconfig(cwconfig) profile = profile or asbool(config.registry.settings.get( 'cubicweb.profile.enable', False)) if profile: