From eb7ea411bfce55085449b79ac88aac19af0e232f Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 6 Sep 2010 00:06:48 +0000 Subject: - 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). --- repoze/bfg/router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'repoze/bfg/router.py') 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 -- cgit v1.2.3