summaryrefslogtreecommitdiff
path: root/docs/narr/views.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-01-16 22:00:45 +0000
committerChris McDonough <chrism@agendaless.com>2009-01-16 22:00:45 +0000
commit8325f1a17d17f744582ffb9eef50da117a00e57f (patch)
tree60f26c3df09ebef6c65f6594aa6726f174a7d997 /docs/narr/views.rst
parent1ccc194a225c579ba937fe1578f841db9aeb2720 (diff)
downloadpyramid-8325f1a17d17f744582ffb9eef50da117a00e57f.tar.gz
pyramid-8325f1a17d17f744582ffb9eef50da117a00e57f.tar.bz2
pyramid-8325f1a17d17f744582ffb9eef50da117a00e57f.zip
- Add a section on "Using BFG Security With URL Dispatch" into the
urldispatch chapter of the documentation. Clean up "BFG" vernacular (replace with repoze.bfg).
Diffstat (limited to 'docs/narr/views.rst')
-rw-r--r--docs/narr/views.rst13
1 files changed, 7 insertions, 6 deletions
diff --git a/docs/narr/views.rst b/docs/narr/views.rst
index eca6001b5..edbe03d82 100644
--- a/docs/narr/views.rst
+++ b/docs/narr/views.rst
@@ -165,10 +165,11 @@ Mapping Views to URLs Using a Decorator
If you're allergic to reading and writing :term:`ZCML`, or you're just
more comfortable defining your view declarations using Python, you may
use the ``repoze.bfg.view.bfg_view`` decorator to associate your view
-functions with URLs instead of using :term:`ZCML` for the same purpose.
-``repoze.bfg.view.bfg_view`` can be used to associate ``for``,
-``name``, ``permission`` and ``request_type`` information -- as done
-via the equivalent ZCML -- with a function that acts as a BFG view.
+functions with URLs instead of using :term:`ZCML` for the same
+purpose. ``repoze.bfg.view.bfg_view`` can be used to associate
+``for``, ``name``, ``permission`` and ``request_type`` information --
+as done via the equivalent ZCML -- with a function that acts as a
+:mod:`repoze.bfg` view.
To make :mod:`repoze.bfg` process your ``bfg_view`` declarations, you
*must* insert the following boilerplate into your application's
@@ -527,8 +528,8 @@ or interface that represents your root object.
name="static"
/>
-In this case, ``.models.Root`` refers to the class of which your BFG
-application's root object is an instance.
+In this case, ``.models.Root`` refers to the class of which your
+:mod:`repoze.bfg` application's root object is an instance.
.. note:: You can also give a ``for`` of ``*`` if you want the name
``static`` to be accessible as the static view against any model.