[Zope3-checkins] CVS: Zope3/src/zope/app/browser/skins/debug - unauthorized.pt:1.1 configure.zcml:1.3

Tres Seaver tseaver@zope.com
Fri, 21 Mar 2003 14:33:49 -0500


Update of /cvs-repository/Zope3/src/zope/app/browser/skins/debug
In directory cvs.zope.org:/tmp/cvs-serv22162

Modified Files:
	configure.zcml 
Added Files:
	unauthorized.pt 
Log Message:
 - Ensure that we don't mask the default handler for Unauthorized.

=== Added File Zope3/src/zope/app/browser/skins/debug/unauthorized.pt ===
<tal:Make_sure_we_process_the_authorization_chalenge_first
  condition="view/issueChallenge"
/><html metal:use-macro="context/@@standard_macros/dialog">
<body>

<div metal:fill-slot="body">

<h1>Unauthorized</h1>
<p>You're not allowed in here.</p>

</div>
</body>
</html>


=== Zope3/src/zope/app/browser/skins/debug/configure.zcml 1.2 => 1.3 ===
--- Zope3/src/zope/app/browser/skins/debug/configure.zcml:1.2	Thu Mar 13 09:55:53 2003
+++ Zope3/src/zope/app/browser/skins/debug/configure.zcml	Fri Mar 21 14:33:49 2003
@@ -5,6 +5,15 @@
 
   <browser:skin name="Debug" layers="debug rotterdam default" />
 
+  <browser:page
+      for="zope.exceptions.IUnauthorized"
+      name="index.html"
+      permission="zope.Public"
+      template="unauthorized.pt"
+      class="zope.app.browser.exception.unauthorized.Unauthorized"
+      layer="debug"
+      />
+
   <browser:page 
       name="index.html"
       template="error_debug.pt"