[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form - vocabularywidget.py:1.32

Fred L. Drake, Jr. fred@zope.com
Thu, 5 Jun 2003 12:23:49 -0400


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

Modified Files:
	vocabularywidget.py 
Log Message:
Don't be stupid when converting ValidationError to WidgetInputError.


=== Zope3/src/zope/app/browser/form/vocabularywidget.py 1.31 => 1.32 ===
--- Zope3/src/zope/app/browser/form/vocabularywidget.py:1.31	Tue Jun  3 18:46:15 2003
+++ Zope3/src/zope/app/browser/form/vocabularywidget.py	Thu Jun  5 12:23:48 2003
@@ -199,8 +199,7 @@
             try:
                 field.validate(data)
             except ValidationError, v:
-                raise WidgetInputError(self.context.__name__,
-                                       self.title, str(v))
+                raise WidgetInputError(self.context.__name__, self.title, v)
         return data
 
     def _emptyMarker(self):