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). --- docs/narr/events.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'docs') 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``). -- cgit v1.2.3