diff options
| author | Chris McDonough <chrism@plope.com> | 2011-04-13 23:55:26 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-04-13 23:55:26 -0400 |
| commit | cae85dc9459310ef67a6d91c7bf8f5545565a95f (patch) | |
| tree | 2cc5ca1cc715274d17fb8e7bfa763eb4bbe6063b /docs | |
| parent | d2973dd0356b88fc47b5f80e2bcef2783429c0c1 (diff) | |
| download | pyramid-cae85dc9459310ef67a6d91c7bf8f5545565a95f.tar.gz pyramid-cae85dc9459310ef67a6d91c7bf8f5545565a95f.tar.bz2 pyramid-cae85dc9459310ef67a6d91c7bf8f5545565a95f.zip | |
- Add missing docs reference to
``pyramid.config.Configurator.set_view_mapper`` and refer to it within
Hooks chapter section named "Using a View Mapper".
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/api/config.rst | 2 | ||||
| -rw-r--r-- | docs/narr/hooks.rst | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/docs/api/config.rst b/docs/api/config.rst index 38f809c7e..2b9d7bcef 100644 --- a/docs/api/config.rst +++ b/docs/api/config.rst @@ -74,6 +74,8 @@ .. automethod:: set_renderer_globals_factory + .. automethod:: set_view_mapper + .. automethod:: testing_securitypolicy .. automethod:: testing_resources diff --git a/docs/narr/hooks.rst b/docs/narr/hooks.rst index 227db2f0f..7e3fe0a5c 100644 --- a/docs/narr/hooks.rst +++ b/docs/narr/hooks.rst @@ -606,9 +606,9 @@ A user might make use of these framework components like so: config.add_handler('two', '/{action}/{id}', MyController) serve(config.make_wsgi_app()) -The :meth:`pyramid.config.Configurator.set_default_mapper` method can be used -to set a *default* view mapper (overriding the superdefault view mapper used -by Pyramid itself). +The :meth:`pyramid.config.Configurator.set_view_mapper` method can be used to +set a *default* view mapper (overriding the superdefault view mapper used by +Pyramid itself). A *single* view registration can use a view mapper by passing the mapper as the ``mapper`` argument to :meth:`~pyramid.config.Configuration.add_view`. |
