summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-07-15 09:31:34 -0400
committerChris McDonough <chrism@plope.com>2011-07-15 09:31:34 -0400
commit153c2b9bce3170d58cafa48d819aef4497159091 (patch)
tree248b6bf2fc5deec503e2d3421b9ebf9232b3ea45
parent4f3d77a45ec0e022fefed6b12f4e585f91f32e50 (diff)
downloadpyramid-153c2b9bce3170d58cafa48d819aef4497159091.tar.gz
pyramid-153c2b9bce3170d58cafa48d819aef4497159091.tar.bz2
pyramid-153c2b9bce3170d58cafa48d819aef4497159091.zip
add description of return value
-rw-r--r--pyramid/paster.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pyramid/paster.py b/pyramid/paster.py
index 578b854a5..8211dc637 100644
--- a/pyramid/paster.py
+++ b/pyramid/paster.py
@@ -42,6 +42,12 @@ def bootstrap(config_uri, request=None):
currently serving ``request``, leaving a natural environment in place
to write scripts that can generate URLs and utilize renderers.
+ This function returns a dictionary with ``app``, ``root`` and ``closer``
+ keys. ``app`` is the WSGI app loaded (based on the ``config_uri``),
+ ``root`` is the traversal root resource of the Pyramid application, and
+ ``closer`` is a parameterless callback that may be called when your
+ script is complete (it pops a threadlocal stack).
+
.. note:: Most operations within :app:`Pyramid` expect to be invoked
within the context of a WSGI request, thus it's important when
loading your application to anchor it when executing scripts