cubicweb/pyramid/__init__.py
changeset 11958 950ce7d9f642
parent 11811 f09efeead7f9
child 11959 ddc05ce75319
--- 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: