8000 - Add missing docs reference to · alex-python/pyramid@cae85dc · GitHub
[go: up one dir, main page]

Skip to content

Commit cae85dc

Browse files
committed
- Add missing docs reference to
``pyramid.config.Configurator.set_view_mapper`` and refer to it within Hooks chapter section named "Using a View Mapper".
1 parent d2973dd commit cae85dc

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

CHANGES.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ Documentation
2121
- Render the function definitions for each exposed interface in
2222
``pyramid.interfaces``.
2323

24+
- Add missing docs reference to
25+
``pyramid.config.Configurator.set_view_mapper`` and refer to it within
26+
Hooks chapter section named "Using a View Mapper".
27+
2428
Features
2529
--------
2630

docs/api/config.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@
7474

7575
.. automethod:: set_renderer_globals_factory
7676

77+
.. automethod:: set_view_mapper
78+
7779
.. automethod:: testing_securitypolicy
7880

7981
.. automethod:: testing_resources

docs/narr/hooks.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -606,9 +606,9 @@ A user might make use of these framework components like so:
606606
config.add_handler('two', '/{action}/{id}', MyController)
607607
serve(config.make_wsgi_app())
608608
609-
The :meth:`pyramid.config.Configurator.set_default_mapper` method can be used
610-
to set a *default* view mapper (overriding the superdefault view mapper used
611-
by Pyramid itself).
609+
The :meth:`pyramid.config.Configurator.set_view_mapper` method can be used to
610+
set a *default* view mapper (overriding the superdefault view mapper used by
611+
Pyramid itself).
612612

613613
A *single* view registration can use a view mapper by passing the mapper as
614614
the ``mapper`` argument to :meth:`~pyramid.config.Configuration.add_view`.

pyramid/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2085,7 +2085,7 @@ def set_view_mapper(self, mapper):
20852085
if you had passed a ``default_view_mapper`` argument to the
20862086
:class:`pyramid.config.Configurator` constructor.
20872087
2088-
See also :ref:`using_an_alternate_view_mapper`.
2088+
See also :ref:`using_a_view_mapper`.
20892089
"""
20902090
mapper = self.maybe_dotted(mapper)
20912091
self.registry.registerUtility(mapper, IViewMapperFactory)

0 commit comments

Comments
 (0)
0