summaryrefslogtreecommitdiff
path: root/docs/narr/urldispatch.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2010-12-19 23:36:25 -0500
committerChris McDonough <chrism@plope.com>2010-12-19 23:36:25 -0500
commite9eaf9523e08384584fd97055960fc26fb94c238 (patch)
treeaa08cfaeed3d3bbdc938da3667883fac21e13967 /docs/narr/urldispatch.rst
parent8dabcb4c5e162075c3418549fc22eb5b7a55200b (diff)
downloadpyramid-e9eaf9523e08384584fd97055960fc26fb94c238.tar.gz
pyramid-e9eaf9523e08384584fd97055960fc26fb94c238.tar.bz2
pyramid-e9eaf9523e08384584fd97055960fc26fb94c238.zip
adjust views chapter to better describe handlers as view classes which happen to be registered using add_handler, gardening
Diffstat (limited to 'docs/narr/urldispatch.rst')
-rw-r--r--docs/narr/urldispatch.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/narr/urldispatch.rst b/docs/narr/urldispatch.rst
index 504c9716d..76eca454d 100644
--- a/docs/narr/urldispatch.rst
+++ b/docs/narr/urldispatch.rst
@@ -1017,7 +1017,7 @@ Redirecting to Slash-Appended Routes
------------------------------------
For behavior like Django's ``APPEND_SLASH=True``, use the
-:func:`pyramid.view.append_slash_notfound_view` view as the :term:`Not Found
+:func:`~pyramid.view.append_slash_notfound_view` view as the :term:`Not Found
view` in your application. Defining this view as the :term:`Not Found view`
is a way to automatically redirect requests where the URL lacks a trailing
slash, but requires one to match the proper route. When configured, along
@@ -1072,18 +1072,18 @@ Custom Not Found View With Slash Appended Routes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
There can only be one :term:`Not Found view` in any :app:`Pyramid`
-application. Even if you use :func:`pyramid.view.append_slash_notfound_view`
+application. Even if you use :func:`~pyramid.view.append_slash_notfound_view`
as the Not Found view, :app:`Pyramid` still must generate a ``404 Not Found``
response when it cannot redirect to a slash-appended URL; this not found
response will be visible to site users.
If you don't care what this 404 response looks like, and only you need
redirections to slash-appended route URLs, you may use the
-:func:`pyramid.view.append_slash_notfound_view` object as the Not Found view
+:func:`~pyramid.view.append_slash_notfound_view` object as the Not Found view
as described above. However, if you wish to use a *custom* notfound view
callable when a URL cannot be redirected to a slash-appended URL, you may
wish to use an instance of the
-:class:`pyramid.view.AppendSlashNotFoundViewFactory` class as the Not Found
+:class:`~pyramid.view.AppendSlashNotFoundViewFactory` class as the Not Found
view, supplying a :term:`view callable` to be used as the custom notfound
view as the first argument to its constructor. For instance: