summaryrefslogtreecommitdiff
path: root/docs/whatsnew-1.1.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-07-16 01:29:52 -0400
committerChris McDonough <chrism@plope.com>2011-07-16 01:29:52 -0400
commit8a8724de56c8dcce763fdb5630c77cb69a149572 (patch)
tree6ec6f95299e2e99dd41b8c9a104389292700ab9f /docs/whatsnew-1.1.rst
parent12382c2b61660f65d7f2dc852102e346ad0d46ed (diff)
downloadpyramid-8a8724de56c8dcce763fdb5630c77cb69a149572.tar.gz
pyramid-8a8724de56c8dcce763fdb5630c77cb69a149572.tar.bz2
pyramid-8a8724de56c8dcce763fdb5630c77cb69a149572.zip
promote bootstrap to major feature
Diffstat (limited to 'docs/whatsnew-1.1.rst')
-rw-r--r--docs/whatsnew-1.1.rst28
1 files changed, 18 insertions, 10 deletions
diff --git a/docs/whatsnew-1.1.rst b/docs/whatsnew-1.1.rst
index a37f03a66..48be2190f 100644
--- a/docs/whatsnew-1.1.rst
+++ b/docs/whatsnew-1.1.rst
@@ -32,6 +32,9 @@ The major feature additions in Pyramid 1.1 are:
- ``http_cache`` view configuration parameter causes Pyramid to set HTTP
caching headers.
+- Features that make it easier to write scripts that work in a :app:`Pyramid`
+ environment.
+
``request.response``
~~~~~~~~~~~~~~~~~~~~
@@ -154,6 +157,21 @@ HTTP cache headers from being set by Pyramid's ``http_cache`` machinery
globally in a process. see :ref:`influencing_http_caching` and
:ref:`preventing_http_caching`.
+Easier Scripting Writing
+~~~~~~~~~~~~~~~~~~~~~~~~
+
+A new API function :func:`pyramid.paster.bootstrap` has been added to make
+writing scripts that need to work under Pyramid environment easier, e.g.:
+
+.. code-block:: python
+
+ from pyramid.paster import bootstrap
+ info = bootstrap('/path/to/my/development.ini')
+ request = info['request']
+ print request.route_url('myroute')
+
+See :ref:`writing_a_script` for more details.
+
Minor Feature Additions
-----------------------
@@ -266,16 +284,6 @@ Minor Feature Additions
:class:`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 :func:`pyramid.paster.bootstrap` has been added to make
- writing scripts that bootstrap a Pyramid environment easier, e.g.:
-
- .. code-block:: python
-
- from pyramid.paster import bootstrap
- info = bootstrap('/path/to/my/development.ini')
- request = info['request']
- print request.route_url('myroute')
-
- A new api function :func:`pyramid.scripting.prepare` has been added. It is
a lower-level analogue of :func:`pyramid.paster.boostrap` that accepts a
request and a registry instead of a config file argument, and is used for