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/bfgwiki/authorization.rst | 2 +- docs/tutorials/bfgwiki/src/authorization/tutorial/configure.zcml | 5 +++-- docs/tutorials/bfgwiki2/authorization.rst | 6 +++--- docs/tutorials/bfgwiki2/src/authorization/tutorial/configure.zcml | 5 +++-- 4 files changed, 10 insertions(+), 8 deletions(-) (limited to 'docs/tutorials') diff --git a/docs/tutorials/bfgwiki/authorization.rst b/docs/tutorials/bfgwiki/authorization.rst index 1b83d3651..8c2ab1df9 100644 --- a/docs/tutorials/bfgwiki/authorization.rst +++ b/docs/tutorials/bfgwiki/authorization.rst @@ -27,7 +27,7 @@ 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 add a ``forbidden`` +enable declarative security checking. We'll also add a new view 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 diff --git a/docs/tutorials/bfgwiki/src/authorization/tutorial/configure.zcml b/docs/tutorials/bfgwiki/src/authorization/tutorial/configure.zcml index 837c04089..5297b9ee3 100644 --- a/docs/tutorials/bfgwiki/src/authorization/tutorial/configure.zcml +++ b/docs/tutorials/bfgwiki/src/authorization/tutorial/configure.zcml @@ -5,9 +5,10 @@ - + renderer="templates/login.pt" + context="repoze.bfg.exceptions.Forbidden"/> - + renderer="templates/login.pt" + for="repoze.bfg.exceptions.Forbidden"/>