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 /repoze/bfg/router.py | |
| 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 'repoze/bfg/router.py')
| -rw-r--r-- | repoze/bfg/router.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/repoze/bfg/router.py b/repoze/bfg/router.py index 8f96bb798..277ee559b 100644 --- a/repoze/bfg/router.py +++ b/repoze/bfg/router.py @@ -157,7 +157,7 @@ class Router(object): request._process_response_callbacks(response) # process the response - has_listeners and registry.notify(NewResponse(response)) + has_listeners and registry.notify(NewResponse(request, response)) start_response(status, headers) return app_iter |
