summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-07-23 14:02:53 -0400
committerChris McDonough <chrism@plope.com>2011-07-23 14:02:53 -0400
commit3835781dab5791282073252d2cee685668bc7b1e (patch)
treee19be2ec32d516b85e2e5a89e7e8935caf517b4a /docs
parent070bfdbaa6f3cffbda3a0bfe86534e24ea01142c (diff)
parent566a276a37fad8073206b46ec77b27498a126f02 (diff)
downloadpyramid-3835781dab5791282073252d2cee685668bc7b1e.tar.gz
pyramid-3835781dab5791282073252d2cee685668bc7b1e.tar.bz2
pyramid-3835781dab5791282073252d2cee685668bc7b1e.zip
Merge branch 'master' into wrapviews
Diffstat (limited to 'docs')
-rw-r--r--docs/narr/hooks.rst3
-rw-r--r--docs/narr/introduction.rst2
-rw-r--r--docs/whatsnew-1.1.rst10
3 files changed, 9 insertions, 6 deletions
diff --git a/docs/narr/hooks.rst b/docs/narr/hooks.rst
index 2a6414e1f..985934736 100644
--- a/docs/narr/hooks.rst
+++ b/docs/narr/hooks.rst
@@ -601,6 +601,9 @@ to make sure the object implements every attribute and method outlined in
:class:`pyramid.interfaces.IResponse` and you'll have to ensure that it's
marked up with ``zope.interface.implements(IResponse)``:
+.. code-block:: python
+ :linenos:
+
from pyramid.interfaces import IResponse
from zope.interface import implements
diff --git a/docs/narr/introduction.rst b/docs/narr/introduction.rst
index 6cc5a87e5..63c31d340 100644
--- a/docs/narr/introduction.rst
+++ b/docs/narr/introduction.rst
@@ -30,7 +30,7 @@ create web applications.
own via a set of libraries if the framework provides a set of
facilities that fits your application requirements.
-Pyramid attempts to follow follow these design and engineering principles:
+Pyramid attempts to follow these design and engineering principles:
Simplicity
:app:`Pyramid` takes a *"pay only for what you eat"* approach. You can get
diff --git a/docs/whatsnew-1.1.rst b/docs/whatsnew-1.1.rst
index 6761aaff8..18d0aa0b1 100644
--- a/docs/whatsnew-1.1.rst
+++ b/docs/whatsnew-1.1.rst
@@ -152,7 +152,7 @@ to only influence ``Cache-Control`` headers, pass a tuple as ``http_cache``
with the first element of ``None``, e.g.: ``(None, {'public':True})``.
The environment setting ``PYRAMID_PREVENT_HTTP_CACHE`` and configuration
-file value ``prevent_http_cache`` are synomymous and allow you to prevent
+file value ``prevent_http_cache`` are synonymous and allow you to prevent
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`.
@@ -479,7 +479,7 @@ Deprecations and Behavior Differences
these methods will be removed entirely.
- A custom request factory is now required to return a request object that
- has a ``response`` attribute (or "reified"/lazy property) if they the
+ has a ``response`` attribute (or "reified"/lazy property) if the
request is meant to be used in a view that uses a renderer. This
``response`` attribute should be an instance of the class
:class:`pyramid.response.Response`.
@@ -542,8 +542,8 @@ Deprecations and Behavior Differences
- Deprecated the
:meth:`pyramid.config.Configurator.set_renderer_globals_factory` method and
the ``renderer_globals`` Configurator constructor parameter. Users should
- use convert code using this feature to use a BeforeRender event als
- :ref:`beforerender_event`.
+ convert code using this feature to use a BeforeRender event. See the section
+ :ref:`beforerender_event` in the Hooks chapter.
- In Pyramid 1.0, the :class:`pyramid.events.subscriber` directive behaved
contrary to the documentation when passed more than one interface object to
@@ -586,7 +586,7 @@ Deprecations and Behavior Differences
- The :meth:`pyramid.config.Configurator.add_route` method allowed two routes
with the same route to be added without an intermediate call to
- :meth:`pyramid.config.Configurator.commit``. If you now receive a
+ :meth:`pyramid.config.Configurator.commit`. If you now receive a
``ConfigurationError`` at startup time that appears to be ``add_route``
related, you'll need to either a) ensure that all of your route names are
unique or b) call ``config.commit()`` before adding a second route with the