diff options
| author | Chris McDonough <chrism@agendaless.com> | 2010-01-11 18:58:50 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2010-01-11 18:58:50 +0000 |
| commit | 9ec2d646eb23b88e4ef8119b0b46240081953daf (patch) | |
| tree | 80296b92edb8310bfb7699d165e92a1ea9e36256 /repoze | |
| parent | 96d63068ba033809ed73834e095f274800e4d4e8 (diff) | |
| download | pyramid-9ec2d646eb23b88e4ef8119b0b46240081953daf.tar.gz pyramid-9ec2d646eb23b88e4ef8119b0b46240081953daf.tar.bz2 pyramid-9ec2d646eb23b88e4ef8119b0b46240081953daf.zip | |
Merge of andrew-docs branch.
Diffstat (limited to 'repoze')
| -rw-r--r-- | repoze/bfg/events.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/repoze/bfg/events.py b/repoze/bfg/events.py index 1c9ca174c..6c64fa2ec 100644 --- a/repoze/bfg/events.py +++ b/repoze/bfg/events.py @@ -20,7 +20,17 @@ class NewResponse(object): whenever any :mod:`repoze.bfg` view returns a :term:`response`. The instance has an attribute, ``response``, which is the response object returned by the view. This class implements the - :class:`repoze.bfg.interfaces.INewResponse` interface.""" + :class:`repoze.bfg.interfaces.INewResponse` interface. + + .. note:: + + Postprocessing a response is usually better handled in a WSGI + :term:`middleware` component than in subscriber code that is + called by a :class:`repoze.bfg.interfaces.INewResponse` event. + The :class:`repoze.bfg.interfaces.INewResponse` event exists + almost purely for symmetry with the + :class:`repoze.bfg.interfaces.INewRequest` event. + """ implements(INewResponse) def __init__(self, response): self.response = response |
