[Zope3-checkins] CVS: Zope3/src/zope/app/form/tests - test_utility.py:1.3 test_widget.py:1.3
Jim Fulton
jim@zope.com
Thu, 9 Jan 2003 09:13:43 -0500
Update of /cvs-repository/Zope3/src/zope/app/form/tests
In directory cvs.zope.org:/tmp/cvs-serv14386/src/zope/app/form/tests
Modified Files:
test_utility.py test_widget.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/form/tests/test_utility.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/form/tests/test_utility.py:1.2 Wed Dec 25 09:12:52 2002
+++ Zope3/src/zope/app/form/tests/test_utility.py Thu Jan 9 09:13:10 2003
@@ -29,7 +29,7 @@
from zope.component.view \
import provideView, setDefaultViewName
from zope.schema.interfaces import IText
-from zope.app.interfaces.forms import WidgetsError, MissingInputError
+from zope.app.interfaces.form import WidgetsError, MissingInputError
from zope.app.form.utility import setUpWidget, setUpWidgets, setUpEditWidgets
from zope.app.form.utility import getWidgetsData, getWidgetsDataForContent
from zope.app.form.utility import haveWidgetsData, fieldNames
=== Zope3/src/zope/app/form/tests/test_widget.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/form/tests/test_widget.py:1.2 Wed Dec 25 09:12:52 2002
+++ Zope3/src/zope/app/form/tests/test_widget.py Thu Jan 9 09:13:10 2003
@@ -20,7 +20,7 @@
from unittest import TestCase, TestSuite, main, makeSuite
from zope.app.form.widget import Widget, CustomWidget
-from zope.app.interfaces.forms import IWidget
+from zope.app.interfaces.form import IWidget
from zope.interface.verify import verifyObject
from zope.schema import Text
from zope.publisher.browser import TestRequest