[Zope3-checkins] CVS: Zope3/src/zope/exceptions - unauthorized.py:1.7

Jeremy Hylton jeremy@zope.com
Mon, 30 Jun 2003 12:26:39 -0400


Update of /cvs-repository/Zope3/src/zope/exceptions
In directory cvs.zope.org:/tmp/cvs-serv18994

Modified Files:
	unauthorized.py 
Log Message:
Provide a default return value.


=== Zope3/src/zope/exceptions/unauthorized.py 1.6 => 1.7 ===
--- Zope3/src/zope/exceptions/unauthorized.py:1.6	Sat Jun  7 02:54:24 2003
+++ Zope3/src/zope/exceptions/unauthorized.py	Mon Jun 30 12:26:38 2003
@@ -69,6 +69,7 @@
         elif self.value is not None:
             return ("You are not allowed to access %s in this context"
                     % self.getValueName())
+        return "Your are not authorized"
 
 
     def getValueName(self):