[Checkins] SVN: z3c.dav/trunk/ Register views for the `zope.security.interfaces.Forbidden' exceptions.

Michael Kerrin michael.kerrin at openapp.ie
Mon Feb 11 14:53:07 EST 2008


Log message for revision 83750:
  Register views for the `zope.security.interfaces.Forbidden' exceptions.
  

Changed:
  U   z3c.dav/trunk/CHANGES.txt
  U   z3c.dav/trunk/src/z3c/dav/exceptions/configure.zcml

-=-
Modified: z3c.dav/trunk/CHANGES.txt
===================================================================
--- z3c.dav/trunk/CHANGES.txt	2008-02-11 19:09:44 UTC (rev 83749)
+++ z3c.dav/trunk/CHANGES.txt	2008-02-11 19:53:05 UTC (rev 83750)
@@ -2,6 +2,11 @@
 Changes in z3c.dav
 ==================
 
+1.0b2
+=====
+
+- Register views for the `zope.security.interfaces.Forbidden' exceptions.
+
 1.0b1
 =====
 

Modified: z3c.dav/trunk/src/z3c/dav/exceptions/configure.zcml
===================================================================
--- z3c.dav/trunk/src/z3c/dav/exceptions/configure.zcml	2008-02-11 19:09:44 UTC (rev 83749)
+++ z3c.dav/trunk/src/z3c/dav/exceptions/configure.zcml	2008-02-11 19:53:05 UTC (rev 83750)
@@ -6,6 +6,13 @@
     -->
   <adapter
      factory="z3c.dav.exceptions.ForbiddenError"
+     for="zope.security.interfaces.Forbidden
+          z3c.dav.interfaces.IWebDAVRequest"
+     provides="z3c.dav.interfaces.IDAVErrorWidget"
+     />
+
+  <adapter
+     factory="z3c.dav.exceptions.ForbiddenError"
      for="z3c.dav.interfaces.ForbiddenError
           z3c.dav.interfaces.IWebDAVRequest"
      provides="z3c.dav.interfaces.IDAVErrorWidget"
@@ -132,6 +139,14 @@
      />
 
   <view
+     for="zope.security.interfaces.IForbidden"
+     type="zope.publisher.interfaces.http.IHTTPRequest"
+     name="index.html"
+     permission="zope.Public"
+     factory="z3c.dav.exceptions.HTTPForbiddenError"
+     />
+
+  <view
      for="z3c.dav.interfaces.IForbiddenError"
      type="zope.publisher.interfaces.http.IHTTPRequest"
      name="index.html"



More information about the Checkins mailing list