diff options
| author | Chris McDonough <chrism@agendaless.com> | 2010-09-06 00:06:48 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2010-09-06 00:06:48 +0000 |
| commit | eb7ea411bfce55085449b79ac88aac19af0e232f (patch) | |
| tree | 6c98b973c746d4c37a5d7f40078aefd9dd1c4d23 /docs | |
| parent | 8deae21c801bc05c6464a6eead3df449ed1fe52d (diff) | |
| download | pyramid-eb7ea411bfce55085449b79ac88aac19af0e232f.tar.gz pyramid-eb7ea411bfce55085449b79ac88aac19af0e232f.tar.bz2 pyramid-eb7ea411bfce55085449b79ac88aac19af0e232f.zip | |
- The ``repoze.bfg.interfaces.INewResponse`` interface now includes a
``request`` attribute; as a result, a handler for INewResponse now
has access to the request which caused the response.
- The INewResponse event is now not sent to listeners if the response
returned by view code (or a renderer) is not a "real" response
(e.g. if it does not have ``.status``, ``.headerlist`` and
``.app_iter`` attribtues).
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/narr/events.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/narr/events.rst b/docs/narr/events.rst index 6b46cfd9c..35e4120dc 100644 --- a/docs/narr/events.rst +++ b/docs/narr/events.rst @@ -202,5 +202,7 @@ because the interface defined at know that :class:`repoze.bfg.interfaces.INewResponse` events have a ``response`` attribute, which is a response object constructed by your application, because the interface defined at -:class:`repoze.bfg.interfaces.INewResponse` says it must. +:class:`repoze.bfg.interfaces.INewResponse` says it must +(:class:`repoze.bfg.interfaces.INewResponse` objects also have a +``request``). |
