[Zope3-checkins] CVS: Zope3/src/zope/app/browser/component - interfacewidget.py:1.18
Jim Fulton
jim@zope.com
Thu, 9 Jan 2003 09:13:33 -0500
Update of /cvs-repository/Zope3/src/zope/app/browser/component
In directory cvs.zope.org:/tmp/cvs-serv14386/src/zope/app/browser/component
Modified Files:
interfacewidget.py
Log Message:
- Got rid of (essentially) unused validateMapping, validateMappingAll,
ValidationErrorsAll and ConversionErrorsAll.
- Renamed zope.app.interfaces.forms to zope.app.interfaces.form
- Changed the way form input errors are handled. Now, *only*
validation errors and widget input errors are caught and displayed
on forms. These errors are about data entry problems. For these, it
never makes sense to show a traceback.
For Python programming errors, we want tracebacks, so it's important
to handle them differently, but letting the propigate and get logged
by the error reporting service.
This required updating the widget code to be more careful about
errors raised.
=== Zope3/src/zope/app/browser/component/interfacewidget.py 1.17 => 1.18 ===
--- Zope3/src/zope/app/browser/component/interfacewidget.py:1.17 Thu Jan 9 07:58:52 2003
+++ Zope3/src/zope/app/browser/component/interfacewidget.py Thu Jan 9 09:13:00 2003
@@ -19,7 +19,7 @@
import sys
from zope.interface import Interface
from zope.app.interfaces.browser.form import IBrowserWidget
-from zope.app.interfaces.forms import WidgetInputError, ConversionError
+from zope.app.interfaces.form import WidgetInputError, ConversionError
from zope.app.form.widget import Widget
from zope.publisher.browser import BrowserView
from zope.component import getService