diff options
| author | Chris McDonough <chrism@plope.com> | 2011-08-06 17:41:30 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-08-06 17:41:30 -0400 |
| commit | dc7122f8bb5033d0cd0e95f5adfa66c4499f140e (patch) | |
| tree | 30ad3bef5b90b8ca15441627da24f9b9ad68a39e /docs | |
| parent | b4843bc087524320460fb3fca9d33688cafa0dbb (diff) | |
| download | pyramid-dc7122f8bb5033d0cd0e95f5adfa66c4499f140e.tar.gz pyramid-dc7122f8bb5033d0cd0e95f5adfa66c4499f140e.tar.bz2 pyramid-dc7122f8bb5033d0cd0e95f5adfa66c4499f140e.zip | |
add glossary entry for tween
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/glossary.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/glossary.rst b/docs/glossary.rst index c6705fdc5..ccb62bbc8 100644 --- a/docs/glossary.rst +++ b/docs/glossary.rst @@ -917,3 +917,14 @@ Glossary PyPy is an "alternative implementation of the Python language":http://pypy.org/ + tween + A bit of code that sits between the Pyramid router's main request + handling function and the upstream WSGI component that uses + :app:`Pyramid` as its 'app'. A tween may be used by Pyramid framework + extensions, to provide, for example, Pyramid-specific view timing + support bookkeeping code that examines exceptions before they are + returned to the upstream WSGI application. Tweens behave a bit like + :mod:`WSGI` 'middleware' but they have the benefit of running in a + context in which they have access to the Pyramid :term:`application + registry` as well as the Pyramid rendering machinery. + |
