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. --- docs/narr/hooks.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/narr') diff --git a/docs/narr/hooks.rst b/docs/narr/hooks.rst index 965a4c77f..e96cd510d 100644 --- a/docs/narr/hooks.rst +++ b/docs/narr/hooks.rst @@ -496,9 +496,9 @@ value of ``None``. Response callbacks are called in the order they're added (first-to-most-recently-added). All response callbacks are called -*before* the :class:`repoze.bfg.interfaces.INewResponse` event is -sent. Errors raised by response callbacks are not handled specially. -They will be propagated to the caller of the :mod:`repoze.bfg` router +*after* the :class:`repoze.bfg.interfaces.INewResponse` event is sent. +Errors raised by response callbacks are not handled specially. They +will be propagated to the caller of the :mod:`repoze.bfg` router application. A response callback has a lifetime of a *single* request. If you want -- cgit v1.2.3