summaryrefslogtreecommitdiff
path: root/docs/zcml/notfound.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2010-10-25 18:13:44 -0400
committerChris McDonough <chrism@plope.com>2010-10-25 18:13:44 -0400
commitc03dbcca24aeedfb688bf49b7ccfeef20f6f8298 (patch)
tree3fe9a9d9ab83871f2562841b65fcfd3477ee90a0 /docs/zcml/notfound.rst
parent9c3b2760688aca748f81529d0b055f799959ab4b (diff)
downloadpyramid-c03dbcca24aeedfb688bf49b7ccfeef20f6f8298.tar.gz
pyramid-c03dbcca24aeedfb688bf49b7ccfeef20f6f8298.tar.bz2
pyramid-c03dbcca24aeedfb688bf49b7ccfeef20f6f8298.zip
convert zcml docs to Pyramid
Diffstat (limited to 'docs/zcml/notfound.rst')
-rw-r--r--docs/zcml/notfound.rst18
1 files changed, 6 insertions, 12 deletions
diff --git a/docs/zcml/notfound.rst b/docs/zcml/notfound.rst
index 3fe9900d4..59263db34 100644
--- a/docs/zcml/notfound.rst
+++ b/docs/zcml/notfound.rst
@@ -5,13 +5,13 @@
.. warning::
- The ``notfound`` ZCML directive is deprecated in :mod:`repoze.bfg`
+ The ``notfound`` ZCML directive is deprecated in :mod:`pyramid`
version 1.3. Instead, you should use the :ref:`view_directive`
directive with a ``context`` that names the
- :exc:`repoze.bfg.exceptions.NotFound` class. See
+ :exc:`pyramid.exceptions.NotFound` class. See
:ref:`changing_the_notfound_view` form more information.
-When :mod:`repoze.bfg` can't map a URL to view code, it invokes a
+When :mod:`pyramid` can't map a URL to view code, it invokes a
:term:`not found view`. The default not found view is very plain, but
the view callable used can be configured via the ``notfound`` ZCML
tag.
@@ -32,8 +32,6 @@ Attributes
:ref:`view_directive`; see the description of ``attr``
there).
- .. note:: This feature is new as of :mod:`repoze.bfg` 1.1.
-
``renderer``
This is either a single string term (e.g. ``json``) or a string
implying a path or :term:`resource specification`
@@ -42,8 +40,6 @@ Attributes
it would in the context of :ref:`view_directive`; see the
description of ``renderer`` there).
- .. note:: This feature is new as of :mod:`repoze.bfg` 1.1.
-
``wrapper``
The :term:`view name` (*not* an object dotted name) of another view
declared elsewhere in ZCML (or via the ``@bfg_view`` decorator)
@@ -56,8 +52,6 @@ Attributes
*should not* be protected by any permission; behavior is undefined
if it does.
- .. note:: This feature is new as of :mod:`repoze.bfg` 1.1.
-
Example
~~~~~~~
@@ -71,11 +65,11 @@ Alternatives
~~~~~~~~~~~~
Use the :ref:`view_directive` directive with a ``context`` that names
-the :exc:`repoze.bfg.exceptions.NotFound` class.
+the :exc:`pyramid.exceptions.NotFound` class.
-Use the :meth:`repoze.bfg.configuration.Configurator.add_view` method,
+Use the :meth:`pyramid.configuration.Configurator.add_view` method,
passing it a ``context`` which is the
-:exc:`repoze.bfg.exceptions.NotFound` class.
+:exc:`pyramid.exceptions.NotFound` class.
See Also
~~~~~~~~