From ff1213e8f2aed987108ba57aed517c033491b1aa Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 14 Apr 2010 02:49:19 +0000 Subject: Add "exception views" work contributed primarily by Andrey Popp by merging the "phash" branch. --- docs/tutorials/bfgwiki2/authorization.rst | 6 +++--- docs/tutorials/bfgwiki2/src/authorization/tutorial/configure.zcml | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'docs/tutorials/bfgwiki2') diff --git a/docs/tutorials/bfgwiki2/authorization.rst b/docs/tutorials/bfgwiki2/authorization.rst index 9a37760f1..2f1a9e082 100644 --- a/docs/tutorials/bfgwiki2/authorization.rst +++ b/docs/tutorials/bfgwiki2/authorization.rst @@ -84,9 +84,9 @@ Changing ``configure.zcml`` We'll change our ``configure.zcml`` file to enable an ``AuthTktAuthenticationPolicy`` and an ``ACLAuthorizationPolicy`` to enable declarative security checking. We'll also change -``configure.zcml`` to add a ``forbidden`` stanza which points at our -``login`` :term:`view callable`, also known as a :term:`forbidden -view`. This configures our newly created login view to show up when +``configure.zcml`` to add a view stanza which points at our ``login`` +:term:`view callable`, also known as a :term:`forbidden view`. This +configures our newly created login view to show up when :mod:`repoze.bfg` detects that a view invocation can not be authorized. Also, we'll add ``view_permission`` attributes with the value ``edit`` to the ``edit_page`` and ``add_page`` route diff --git a/docs/tutorials/bfgwiki2/src/authorization/tutorial/configure.zcml b/docs/tutorials/bfgwiki2/src/authorization/tutorial/configure.zcml index 564cb7443..018892cd1 100644 --- a/docs/tutorials/bfgwiki2/src/authorization/tutorial/configure.zcml +++ b/docs/tutorials/bfgwiki2/src/authorization/tutorial/configure.zcml @@ -53,9 +53,10 @@ view_permission="edit" /> - + renderer="templates/login.pt" + for="repoze.bfg.exceptions.Forbidden"/>