summaryrefslogtreecommitdiff
path: root/docs/narr/hooks.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-01-19 01:37:18 -0500
committerChris McDonough <chrism@plope.com>2011-01-19 01:37:18 -0500
commite3bb4cd9e413e58ec6c7ea7d4682bac329b712dd (patch)
treeb0c3b4f5dd8a0ec1c01912bfeff769d1329a9c97 /docs/narr/hooks.rst
parent48bccbe4ff7351d823a471005effea1afc06bb4f (diff)
parentb0240d3d5a39a504d5a5155a23a6d6a431b457ef (diff)
downloadpyramid-e3bb4cd9e413e58ec6c7ea7d4682bac329b712dd.tar.gz
pyramid-e3bb4cd9e413e58ec6c7ea7d4682bac329b712dd.tar.bz2
pyramid-e3bb4cd9e413e58ec6c7ea7d4682bac329b712dd.zip
Merge branch 'caseman-master'
Diffstat (limited to 'docs/narr/hooks.rst')
-rw-r--r--docs/narr/hooks.rst13
1 files changed, 7 insertions, 6 deletions
diff --git a/docs/narr/hooks.rst b/docs/narr/hooks.rst
index f75e0bcf5..6b1522846 100644
--- a/docs/narr/hooks.rst
+++ b/docs/narr/hooks.rst
@@ -354,10 +354,11 @@ parameter: ``request``. For example:
transaction.commit()
request.add_finished_callback(commit_callback)
-Finished callbacks are called in the order they're added ( first- to
-most-recently- added). Finished callbacks (unlike a :term:`response
-callback`) are *always* called, even if an exception happens in application
-code that prevents a response from being generated.
+Finished callbacks are called in the order they're added
+(first-to-most-recently-added). Finished callbacks (unlike a
+:term:`response callback`) are *always* called, even if an exception
+happens in application code that prevents a response from being
+generated.
The set of finished callbacks associated with a request are called *very
late* in the processing of that request; they are essentially the very last
@@ -535,8 +536,8 @@ Using a View Mapper
-------------------
The default calling conventions for view callables are documented in the
-:ref:`views_chapter`. You can change the way users define view callbles by
-employing a :term:`view mapper`.
+:ref:`views_chapter` chapter. You can change the way users define view
+callbles by employing a :term:`view mapper`.
A view mapper is an object that accepts a set of keyword arguments and which
returns a callable. The returned callable is called with the :term:`view