diff options
| author | Chris McDonough <chrism@plope.com> | 2013-09-08 17:27:05 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2013-09-08 17:27:05 -0400 |
| commit | c30e2d0c93a1971e983c657ec7ec0e6b796d3bc2 (patch) | |
| tree | 3793e6197b51decccf1bdf6c733f8d0269ca9150 /docs | |
| parent | e7575491cb6d63e887dcdc40c2d86bb30ff775ca (diff) | |
| parent | c390f4bcae4751b406a8467fecdbdecc242f3a25 (diff) | |
| download | pyramid-c30e2d0c93a1971e983c657ec7ec0e6b796d3bc2.tar.gz pyramid-c30e2d0c93a1971e983c657ec7ec0e6b796d3bc2.tar.bz2 pyramid-c30e2d0c93a1971e983c657ec7ec0e6b796d3bc2.zip | |
Merge branch 'bertjwregeer-feature/allow_dotted_predicates'
Diffstat (limited to 'docs')
| -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: |
