summaryrefslogtreecommitdiff
path: root/docs/tutorials/bfgwiki/authorization.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/tutorials/bfgwiki/authorization.rst')
-rw-r--r--docs/tutorials/bfgwiki/authorization.rst17
1 files changed, 9 insertions, 8 deletions
diff --git a/docs/tutorials/bfgwiki/authorization.rst b/docs/tutorials/bfgwiki/authorization.rst
index cb0f8439e..52e7cc528 100644
--- a/docs/tutorials/bfgwiki/authorization.rst
+++ b/docs/tutorials/bfgwiki/authorization.rst
@@ -23,13 +23,12 @@ Changing ``configure.zcml``
~~~~~~~~~~~~~~~~~~~~~~~~~~~
We'll change our ``configure.zcml`` file to enable an
-:class:`repoze.bfg.authentication.AuthTktAuthenticationPolicy` and an
-:class:`repoze.bfg.authorization.ACLAuthorizationPolicy` to enable
-declarative security checking. We'll also add a ``forbidden`` stanza,
-which species a :term:`forbidden view`. This configures our login
-view to show up when :mod:`repoze.bfg` detects that a view invocation
-can not be authorized. When you're done, your ``configure.zcml`` will
-look like so:
+``AuthTktAuthenticationPolicy`` and an ``ACLAuthorizationPolicy`` to
+enable declarative security checking. We'll also add a ``forbidden``
+stanza, which species a :term:`forbidden view`. This configures our
+login view to show up when :mod:`repoze.bfg` detects that a view
+invocation can not be authorized. When you're done, your
+``configure.zcml`` will look like so:
.. literalinclude:: src/authorization/tutorial/configure.zcml
:linenos:
@@ -123,7 +122,9 @@ class="main_content">`` div:
.. code-block:: xml
:linenos:
- <span tal:condition="logged_in"><a href="${request.application_url}/logout">Logout</a></span>
+ <span tal:condition="logged_in">
+ <a href="${request.application_url}/logout">Logout</a>
+ </span>
Giving Our Root Model Object an ACL
-----------------------------------