From c9ac82b2c06f431a1a2aaca9db7d0a129f91db07 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 13 Sep 2010 08:58:52 +0000 Subject: - Call response callbacks *after* INewResponse event. - Rearrange router logic so that start_response is not called until there is no chance of an exception occurring. --- repoze/bfg/request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'repoze/bfg/request.py') diff --git a/repoze/bfg/request.py b/repoze/bfg/request.py index 6a7ce14ac..0e764b34a 100644 --- a/repoze/bfg/request.py +++ b/repoze/bfg/request.py @@ -68,7 +68,7 @@ class Request(WebobRequest): called if an exception happens in application code, or if the response object returned by :term:`view` code is invalid. - All response callbacks are called *before* the + All response callbacks are called *after* the :class:`repoze.bfg.interfaces.INewResponse` event is sent. Errors raised by callbacks are not handled specially. They -- cgit v1.2.3