diff options
| author | Chris McDonough <chrism@agendaless.com> | 2010-09-13 08:58:52 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2010-09-13 08:58:52 +0000 |
| commit | c9ac82b2c06f431a1a2aaca9db7d0a129f91db07 (patch) | |
| tree | 9795cb55b2b359692bb16fd34d6edb58c1cf1f6d /docs/narr | |
| parent | b847e0b4030ab6797ed8d996d133d1d8068aba83 (diff) | |
| download | pyramid-c9ac82b2c06f431a1a2aaca9db7d0a129f91db07.tar.gz pyramid-c9ac82b2c06f431a1a2aaca9db7d0a129f91db07.tar.bz2 pyramid-c9ac82b2c06f431a1a2aaca9db7d0a129f91db07.zip | |
- 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.
Diffstat (limited to 'docs/narr')
| -rw-r--r-- | docs/narr/hooks.rst | 6 |
1 files changed, 3 insertions, 3 deletions
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 |
