From 71696bd1a38466033370c3de56c55ebcd64163f2 Mon Sep 17 00:00:00 2001 From: Michael Merickel Date: Thu, 14 Jul 2011 18:59:20 -0500 Subject: Modified bootstrap to return a dict. --- pyramid/paster.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pyramid/paster.py b/pyramid/paster.py index 9ebeacab9..578b854a5 100644 --- a/pyramid/paster.py +++ b/pyramid/paster.py @@ -38,7 +38,9 @@ def get_app(config_uri, name=None, loadapp=loadapp): def bootstrap(config_uri, request=None): """ Load a WSGI application from the PasteDeploy config file specified - by ``config_uri``. + by ``config_uri``. The environment will be configured as if it is + currently serving ``request``, leaving a natural environment in place + to write scripts that can generate URLs and utilize renderers. .. note:: Most operations within :app:`Pyramid` expect to be invoked within the context of a WSGI request, thus it's important when @@ -65,7 +67,11 @@ def bootstrap(config_uri, request=None): """ app = get_app(config_uri) root, closer = get_root2(request) - return (app, root, closer) + return { + 'app': app, + 'root': root, + 'closer': closer, + } _marker = object() -- cgit v1.2.3