[Zope-Checkins] CVS: Zope/lib/python/zExceptions - unauthorized.py:1.8

Andreas Jung andreas@andreas-jung.com
Mon, 24 Feb 2003 11:57:37 -0500


Update of /cvs-repository/Zope/lib/python/zExceptions
In directory cvs.zope.org:/tmp/cvs-serv2123/python/zExceptions

Modified Files:
	unauthorized.py 
Log Message:
quoting the unauthorized component makes the exception
a bit more readable


=== Zope/lib/python/zExceptions/unauthorized.py 1.7 => 1.8 ===
--- Zope/lib/python/zExceptions/unauthorized.py:1.7	Tue Sep 24 18:05:40 2002
+++ Zope/lib/python/zExceptions/unauthorized.py	Mon Feb 24 11:57:36 2003
@@ -52,10 +52,10 @@
     def __str__(self):
         if self.message is not None: return self.message
         if self.name is not None:
-            return ("You are not allowed to access %s in this context"
+            return ("You are not allowed to access '%s' in this context"
                     % self.name)
         elif self.value is not None:
-            return ("You are not allowed to access %s in this context"
+            return ("You are not allowed to access 's' in this context"
                     % self.getValueName())
         return repr(self)