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/interfaces.py | 1 + 1 file changed, 1 insertion(+) (limited to 'repoze/bfg/interfaces.py') diff --git a/repoze/bfg/interfaces.py b/repoze/bfg/interfaces.py index 086c93f3a..86e2206e3 100644 --- a/repoze/bfg/interfaces.py +++ b/repoze/bfg/interfaces.py @@ -16,6 +16,7 @@ class INewRequest(Interface): class INewResponse(Interface): """ An event type that is emitted whenever any :mod:`repoze.bfg` view returns a response.""" + request = Attribute('The request object') response = Attribute('The response object') class IWSGIApplicationCreatedEvent(Interface): -- cgit v1.2.3