diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-12-09 00:47:21 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-12-09 00:47:21 +0000 |
| commit | 7d9398b43d55c6517c86b4c33282174a6a11a7c8 (patch) | |
| tree | f4176825d20383c1bf265ecad4fb630254f4f21d /docs | |
| parent | 8b1f6e5ed3f9fc32b5eb03257d24eaf754a797a9 (diff) | |
| download | pyramid-7d9398b43d55c6517c86b4c33282174a6a11a7c8.tar.gz pyramid-7d9398b43d55c6517c86b4c33282174a6a11a7c8.tar.bz2 pyramid-7d9398b43d55c6517c86b4c33282174a6a11a7c8.zip | |
Invert.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/glossary.rst | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/docs/glossary.rst b/docs/glossary.rst index aa7847879..d1fbad6cf 100644 --- a/docs/glossary.rst +++ b/docs/glossary.rst @@ -75,13 +75,16 @@ Glossary View Callable A "view callable" is a callable Python object which is associated with a :term:`view configuration`; it returns a :term:`response` - object . It should accept two values: :term:`context` and - :term:`request`. An alternate calling convention allows a view to - be defined as a a callable which only accepts a single ``request`` - argument. A view callable is the primary mechanism by which a - developer writes user interface code within :mod:`repoze.bfg`. - See :ref:`views_chapter` for more information about - :mod:`repoze.bfg` view callables. + object . A view callable accepts a single argument: ``request``, + which will be an instance of a :term:`request` object. An + alternate calling convention allows a view to be defined as a + callable which accepts a pair of arguments: ``context`` and + ``request``: this calling convention is useful for traversal-based + applications in which the context is always very important. A + view callable is the primary mechanism by which a developer writes + user interface code within :mod:`repoze.bfg`. See + :ref:`views_chapter` for more information about :mod:`repoze.bfg` + view callables. View Configuration View configuration is the act of associating a view callable with configuration information. This configuration information helps |
