summaryrefslogtreecommitdiff
path: root/CHANGES.txt
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-07-15 10:13:07 -0400
committerChris McDonough <chrism@plope.com>2011-07-15 10:13:07 -0400
commitc515d77de5b2f62727251ebc32d1292e67811771 (patch)
treed47c6230bbab46bf83022730412296574c2893fb /CHANGES.txt
parent153c2b9bce3170d58cafa48d819aef4497159091 (diff)
downloadpyramid-c515d77de5b2f62727251ebc32d1292e67811771.tar.gz
pyramid-c515d77de5b2f62727251ebc32d1292e67811771.tar.bz2
pyramid-c515d77de5b2f62727251ebc32d1292e67811771.zip
- get_root2 -> prepare
- change prepare return value to a dict, and return the registry, request, etc - various docs and changelog entries.
Diffstat (limited to 'CHANGES.txt')
-rw-r--r--CHANGES.txt33
1 files changed, 33 insertions, 0 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index bc906772d..0e1f67cdc 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -16,6 +16,39 @@ Features
``pyramid.static.static_view`` exposes a ``use_subpath`` flag for use when
you want the static view to behave like the older deprecated version.
+- A new API function ``pyramid.paster.bootstrap`` has been added to make
+ writing scripts that bootstrap a Pyramid environment easier, e.g.::
+
+ from pyramid.paster import bootstrap
+ info = bootstrap('/path/to/my/development.ini')
+ request = info['request']
+ print request.route_url('myroute')
+
+- A new API function ``pyramid.scripting.prepare`` has been added. It is a
+ lower-level analogue of ``pyramid.paster.boostrap`` that accepts a request
+ and a registry instead of a config file argument, and is used for the same
+ purpose::
+
+ from pyramid.scripting import prepare
+ info = prepare(registry=myregistry)
+ request = info['request']
+ print request.route_url('myroute')
+
+- A new API function ``pyramid.scripting.make_request`` has been added. The
+ resulting request will have a ``registry`` attribute. It is meant to be
+ used in conjunction with ``pyramid.scripting.prepare`` and/or
+ ``pyramid.paster.bootstrap`` (both of which accept a request as an
+ argument)::
+
+ from pyramid.scripting import make_request
+ request = make_request('/')
+
+- New API attribute ``pyramid.config.global_registries`` is an iterable
+ object that contains references to every Pyramid registry loaded into the
+ current process via ``pyramid.config.Configurator.make_app``. It also has
+ a ``last`` attribute containing the last registry loaded. This is used by
+ the scripting machinery, and is available for introspection.
+
Deprecations
------------