[Zope3-checkins] CVS: Zope3/src/zope/app/browser/exception - unauthorized.py:1.4
Viktorija Zaksiene
ryzaja@codeworks.lt
Mon, 24 Mar 2003 05:42:10 -0500
Update of /cvs-repository/Zope3/src/zope/app/browser/exception
In directory cvs.zope.org:/tmp/cvs-serv18016/src/zope/app/browser/exception
Modified Files:
unauthorized.py
Log Message:
Added explanation why 403 is used instead of 401 in issueChallenge.
=== Zope3/src/zope/app/browser/exception/unauthorized.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/browser/exception/unauthorized.py:1.3 Mon Mar 24 04:02:06 2003
+++ Zope3/src/zope/app/browser/exception/unauthorized.py Mon Mar 24 05:42:09 2003
@@ -26,6 +26,8 @@
self.request = request
def issueChallenge(self):
+ # 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
prinreg = getParent(principal)