diff options
| author | Bert JW Regeer <bertjw@regeer.org> | 2013-09-08 15:15:58 -0600 |
|---|---|---|
| committer | Bert JW Regeer <bertjw@regeer.org> | 2013-09-08 15:15:58 -0600 |
| commit | d71acabebb804ebbd37703e78ac9886fcdded827 (patch) | |
| tree | 35286eb2efc12edf5375cb7e7be5e6d5d671680d /docs/narr/hooks.rst | |
| parent | b098c223a3574988d6e8855a6c4764587a46b067 (diff) | |
| download | pyramid-d71acabebb804ebbd37703e78ac9886fcdded827.tar.gz pyramid-d71acabebb804ebbd37703e78ac9886fcdded827.tar.bz2 pyramid-d71acabebb804ebbd37703e78ac9886fcdded827.zip | |
Update documentation to reflect the dotted python name
Diffstat (limited to 'docs/narr/hooks.rst')
| -rw-r--r-- | docs/narr/hooks.rst | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/narr/hooks.rst b/docs/narr/hooks.rst index 8ffda1a5f..a7dc3e78b 100644 --- a/docs/narr/hooks.rst +++ b/docs/narr/hooks.rst @@ -1384,9 +1384,11 @@ The first argument to :meth:`pyramid.config.Configurator.add_view_predicate`, the name, is a string representing the name that is expected to be passed to ``view_config`` (or its imperative analogue ``add_view``). -The second argument is a view or route predicate factory. A view or route -predicate factory is most often a class with a constructor (``__init__``), a -``text`` method, a ``phash`` method and a ``__call__`` method. For example: +The second argument is a view or route predicate factory, or a :term:`dotted +Python name` which refers to a view or route predicate factory. A view or +route predicate factory is most often a class with a constructor +(``__init__``), a ``text`` method, a ``phash`` method and a ``__call__`` +method. For example: .. code-block:: python :linenos: |
