[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Forms - Exceptions.py:1.5
Jim Fulton
jim@zope.com
Sat, 30 Nov 2002 13:32:59 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/Forms
In directory cvs.zope.org:/tmp/cvs-serv11288/lib/python/Zope/App/Forms
Modified Files:
Exceptions.py
Log Message:
Changed the string representation of error containers to include error
type names.
=== Zope3/lib/python/Zope/App/Forms/Exceptions.py 1.4 => 1.5 ===
--- Zope3/lib/python/Zope/App/Forms/Exceptions.py:1.4 Mon Nov 11 15:26:26 2002
+++ Zope3/lib/python/Zope/App/Forms/Exceptions.py Sat Nov 30 13:32:58 2002
@@ -58,7 +58,10 @@
return self.args[i]
def __str__(self):
- return "\n".join(map(str, self.args))
+ return "\n".join(
+ ["%s: %s" % (error.__class__.__name__, error)
+ for error in self.args]
+ )
__repr__ = __str__