[Zope3-checkins] CVS: Zope3/src/zope/app/browser/exception - unauthorized.py:1.6.30.1

Marius Gedminas marius at pov.lt
Fri Mar 19 13:51:12 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/browser/exception
In directory cvs.zope.org:/tmp/cvs-serv26650/src/zope/app/browser/exception

Modified Files:
      Tag: mgedmin-events2-branch
	unauthorized.py 
Log Message:
Added IParticipation and replaced the lists of principals in IInteraction with
a list of participations.  Made BaseRequest an IParticipation and replaced
request.user with request.principal everywhere.



=== Zope3/src/zope/app/browser/exception/unauthorized.py 1.6 => 1.6.30.1 ===
--- Zope3/src/zope/app/browser/exception/unauthorized.py:1.6	Tue Aug 12 15:14:53 2003
+++ Zope3/src/zope/app/browser/exception/unauthorized.py	Fri Mar 19 13:50:11 2004
@@ -27,7 +27,7 @@
         # Set the error status to 403 (Forbidden) in the case when we don't
         # challenge the user
         self.request.response.setStatus(403)
-        principal = self.request.user
+        principal = self.request.principal
         prinreg = getParent(principal)
         if not IAuthenticationService.isImplementedBy(prinreg):
             # With PluggableAuthenticationService, principals are




More information about the Zope3-Checkins mailing list