[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form/tests - test_checkboxwidget.py:1.9.34.2 test_datetimewidget.py:1.2.34.2 test_datewidget.py:1.2.34.2 test_directives.py:1.3.2.2 test_editview.py:1.17.4.2 test_filewidget.py:1.7.34.2 test_floatwidget.py:1.2.34.2 test_intwidget.py:1.2.34.2 test_listwidget.py:1.8.34.2 test_multicheckboxwidget.py:1.8.34.2 test_multilistwidget.py:1.8.34.2 test_objectwidget.py:1.5.22.2 test_passwordwidget.py:1.8.34.2 test_radiowidget.py:1.10.34.2 test_sequencewidget.py:1.6.20.2 test_textareawidget.py:1.9.34.2 test_textwidget.py:1.7.34.2

Garrett Smith garrett at mojave-corp.com
Mon Mar 1 18:33:39 EST 2004


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

Modified Files:
      Tag: garrett-widgets2-branch
	test_checkboxwidget.py test_datetimewidget.py 
	test_datewidget.py test_directives.py test_editview.py 
	test_filewidget.py test_floatwidget.py test_intwidget.py 
	test_listwidget.py test_multicheckboxwidget.py 
	test_multilistwidget.py test_objectwidget.py 
	test_passwordwidget.py test_radiowidget.py 
	test_sequencewidget.py test_textareawidget.py 
	test_textwidget.py 
Log Message:
Changes related to widget machinery:

- Added source argument to setUpEditWidgets and setUpDisplayWidgets.
- Renamed IEditWidget to IInputWidget.
- Added a widgetsData attribute to zope.app.interfaces.formWidgetsError.



=== Zope3/src/zope/app/browser/form/tests/test_checkboxwidget.py 1.9.34.1 => 1.9.34.2 ===
--- Zope3/src/zope/app/browser/form/tests/test_checkboxwidget.py:1.9.34.1	Thu Feb 26 00:10:50 2004
+++ Zope3/src/zope/app/browser/form/tests/test_checkboxwidget.py	Mon Mar  1 18:33:08 2004
@@ -16,7 +16,7 @@
 """
 import unittest, doctest
 
-from zope.app.interfaces.form import IEditWidget
+from zope.app.interfaces.form import IInputWidget
 from zope.app.browser.form.widget import CheckBoxWidget
 from zope.publisher.browser import TestRequest
 from zope.schema import Bool
@@ -28,7 +28,7 @@
 class CheckBoxWidgetTest(BrowserWidgetTest):
     """Documents and tests thec checkbox widget.
         
-        >>> verifyClass(IEditWidget, CheckBoxWidget)
+        >>> verifyClass(IInputWidget, CheckBoxWidget)
         True
         
     The rest of the this doctest was moved from widget.py to this test module


=== Zope3/src/zope/app/browser/form/tests/test_datetimewidget.py 1.2.34.1 => 1.2.34.2 ===
--- Zope3/src/zope/app/browser/form/tests/test_datetimewidget.py:1.2.34.1	Thu Feb 26 00:10:50 2004
+++ Zope3/src/zope/app/browser/form/tests/test_datetimewidget.py	Mon Mar  1 18:33:08 2004
@@ -17,7 +17,7 @@
 import unittest, doctest
 from zope.app.datetimeutils import parseDatetimetz
 from zope.app.browser.form.tests.test_browserwidget import BrowserWidgetTest
-from zope.app.interfaces.form import IEditWidget
+from zope.app.interfaces.form import IInputWidget
 from zope.app.browser.form.widget import DatetimeWidget
 from zope.app.interfaces.form import ConversionError, WidgetInputError
 from zope.interface.verify import verifyClass, verifyObject
@@ -28,7 +28,7 @@
 class DatetimeWidgetTest(BrowserWidgetTest):
     """Documents and tests the datetime widget.
         
-        >>> verifyClass(IEditWidget, DatetimeWidget)
+        >>> verifyClass(IInputWidget, DatetimeWidget)
         True
     """
 


=== Zope3/src/zope/app/browser/form/tests/test_datewidget.py 1.2.34.1 => 1.2.34.2 ===
--- Zope3/src/zope/app/browser/form/tests/test_datewidget.py:1.2.34.1	Thu Feb 26 00:10:50 2004
+++ Zope3/src/zope/app/browser/form/tests/test_datewidget.py	Mon Mar  1 18:33:08 2004
@@ -17,7 +17,7 @@
 import unittest, doctest
 from zope.app.datetimeutils import parseDatetimetz
 from zope.app.browser.form.tests.test_browserwidget import BrowserWidgetTest
-from zope.app.interfaces.form import IEditWidget
+from zope.app.interfaces.form import IInputWidget
 from zope.app.browser.form.widget import DateWidget
 from zope.app.interfaces.form import ConversionError, WidgetInputError
 from zope.schema import Date
@@ -26,7 +26,7 @@
 class DateWidgetTest(BrowserWidgetTest):
     """Documents and tests the date widget.
 
-        >>> verifyClass(IEditWidget, DateWidget)
+        >>> verifyClass(IInputWidget, DateWidget)
         True
     """
 


=== Zope3/src/zope/app/browser/form/tests/test_directives.py 1.3.2.1 => 1.3.2.2 ===
--- Zope3/src/zope/app/browser/form/tests/test_directives.py:1.3.2.1	Thu Feb 26 00:10:50 2004
+++ Zope3/src/zope/app/browser/form/tests/test_directives.py	Mon Mar  1 18:33:08 2004
@@ -91,7 +91,7 @@
           <view
               type="zope.publisher.interfaces.browser.IBrowserRequest"
               for="zope.schema.interfaces.ITextLine"
-              provides="zope.app.interfaces.form.IEditWidget"
+              provides="zope.app.interfaces.form.IInputWidget"
               factory="zope.app.browser.form.widget.TextWidget"
               permission="zope.Public"
               />
@@ -118,7 +118,7 @@
           <view
               type="zope.publisher.interfaces.browser.IBrowserRequest"
               for="zope.schema.interfaces.ITextLine"
-              provides="zope.app.interfaces.form.IEditWidget"
+              provides="zope.app.interfaces.form.IInputWidget"
               factory="zope.app.browser.form.widget.TextWidget"
               permission="zope.Public"
               />
@@ -146,7 +146,7 @@
           <view
               type="zope.publisher.interfaces.browser.IBrowserRequest"
               for="zope.schema.interfaces.ITextLine"
-              provides="zope.app.interfaces.form.IEditWidget"
+              provides="zope.app.interfaces.form.IInputWidget"
               factory="zope.app.browser.form.widget.TextWidget"
               permission="zope.Public"
               />
@@ -175,7 +175,7 @@
           <view
               type="zope.publisher.interfaces.browser.IBrowserRequest"
               for="zope.schema.interfaces.ITextLine"
-              provides="zope.app.interfaces.form.IEditWidget"
+              provides="zope.app.interfaces.form.IInputWidget"
               factory="zope.app.browser.form.widget.TextWidget"
               permission="zope.Public"
               />


=== Zope3/src/zope/app/browser/form/tests/test_editview.py 1.17.4.1 => 1.17.4.2 ===
--- Zope3/src/zope/app/browser/form/tests/test_editview.py:1.17.4.1	Thu Feb 26 00:10:50 2004
+++ Zope3/src/zope/app/browser/form/tests/test_editview.py	Mon Mar  1 18:33:08 2004
@@ -27,7 +27,7 @@
 from zope.app.browser.form.widget import TextWidget
 from zope.app.browser.form.submit import Update
 from zope.component.exceptions import ComponentLookupError
-from zope.app.interfaces.form import IEditWidget
+from zope.app.interfaces.form import IInputWidget
 
 class I(Interface):
     foo = TextLine(title=u"Foo")
@@ -101,7 +101,7 @@
 
     def setUp(self):
         super(Test, self).setUp()
-        ztapi.browserViewProviding(ITextLine, TextWidget, IEditWidget)
+        ztapi.browserViewProviding(ITextLine, TextWidget, IInputWidget)
         ztapi.provideAdapter(IFoo, IBar, FooBarAdapter)
 
     def test_setPrefix_and_widgets(self):


=== Zope3/src/zope/app/browser/form/tests/test_filewidget.py 1.7.34.1 => 1.7.34.2 ===
--- Zope3/src/zope/app/browser/form/tests/test_filewidget.py:1.7.34.1	Thu Feb 26 00:10:50 2004
+++ Zope3/src/zope/app/browser/form/tests/test_filewidget.py	Mon Mar  1 18:33:08 2004
@@ -17,7 +17,7 @@
 import unittest, doctest
 
 from StringIO import StringIO
-from zope.app.interfaces.form import IEditWidget
+from zope.app.interfaces.form import IInputWidget
 from zope.app.browser.form.widget import FileWidget
 
 from zope.app.browser.form.tests.test_browserwidget import BrowserWidgetTest
@@ -27,7 +27,7 @@
 class FileWidgetTest(BrowserWidgetTest):
     """Documents and tests the file widget.
     
-        >>> verifyClass(IEditWidget, FileWidget)
+        >>> verifyClass(IInputWidget, FileWidget)
         True
     """
 


=== Zope3/src/zope/app/browser/form/tests/test_floatwidget.py 1.2.34.1 => 1.2.34.2 ===
--- Zope3/src/zope/app/browser/form/tests/test_floatwidget.py:1.2.34.1	Thu Feb 26 00:10:50 2004
+++ Zope3/src/zope/app/browser/form/tests/test_floatwidget.py	Mon Mar  1 18:33:08 2004
@@ -16,7 +16,7 @@
 """
 import unittest, doctest
 from zope.app.browser.form.tests.test_browserwidget import BrowserWidgetTest
-from zope.app.interfaces.form import IEditWidget
+from zope.app.interfaces.form import IInputWidget
 from zope.app.browser.form.widget import FloatWidget
 from zope.app.interfaces.form import ConversionError, WidgetInputError
 from zope.interface.verify import verifyClass, verifyObject
@@ -27,7 +27,7 @@
 class FloatWidgetTest(BrowserWidgetTest):
     """Documents and tests the float widget.
         
-        >>> verifyClass(IEditWidget, FloatWidget)
+        >>> verifyClass(IInputWidget, FloatWidget)
         True
     """
 


=== Zope3/src/zope/app/browser/form/tests/test_intwidget.py 1.2.34.1 => 1.2.34.2 ===
--- Zope3/src/zope/app/browser/form/tests/test_intwidget.py:1.2.34.1	Thu Feb 26 00:10:50 2004
+++ Zope3/src/zope/app/browser/form/tests/test_intwidget.py	Mon Mar  1 18:33:08 2004
@@ -17,7 +17,7 @@
 import unittest, doctest
 from unittest import main, makeSuite
 from zope.app.browser.form.tests.test_browserwidget import BrowserWidgetTest
-from zope.app.interfaces.form import IEditWidget
+from zope.app.interfaces.form import IInputWidget
 from zope.app.browser.form.widget import IntWidget
 from zope.app.interfaces.form import ConversionError, WidgetInputError
 from zope.interface.verify import verifyClass, verifyObject
@@ -28,7 +28,7 @@
 class IntWidgetTest(BrowserWidgetTest):
     """Documents and tests the int widget.
         
-        >>> verifyClass(IEditWidget, IntWidget)
+        >>> verifyClass(IInputWidget, IntWidget)
         True
     """
 


=== Zope3/src/zope/app/browser/form/tests/test_listwidget.py 1.8.34.1 => 1.8.34.2 ===
--- Zope3/src/zope/app/browser/form/tests/test_listwidget.py:1.8.34.1	Thu Feb 26 00:10:50 2004
+++ Zope3/src/zope/app/browser/form/tests/test_listwidget.py	Mon Mar  1 18:33:08 2004
@@ -16,7 +16,7 @@
 """
 import unittest, doctest
 
-from zope.app.interfaces.form import IEditWidget
+from zope.app.interfaces.form import IInputWidget
 from zope.app.browser.form.widget import ListWidget
 from zope.app.browser.form.tests.test_browserwidget import BrowserWidgetTest
 from zope.interface.verify import verifyClass, verifyObject
@@ -24,7 +24,7 @@
 class ListWidgetTest(BrowserWidgetTest):
     """Documents and tests the list widget.
         
-        >>> verifyClass(IEditWidget, ListWidget)
+        >>> verifyClass(IInputWidget, ListWidget)
         True
     """
 


=== Zope3/src/zope/app/browser/form/tests/test_multicheckboxwidget.py 1.8.34.1 => 1.8.34.2 ===
--- Zope3/src/zope/app/browser/form/tests/test_multicheckboxwidget.py:1.8.34.1	Thu Feb 26 00:10:50 2004
+++ Zope3/src/zope/app/browser/form/tests/test_multicheckboxwidget.py	Mon Mar  1 18:33:08 2004
@@ -16,7 +16,7 @@
 """
 import unittest, doctest
 
-from zope.app.interfaces.form import IEditWidget
+from zope.app.interfaces.form import IInputWidget
 from zope.app.browser.form.widget import MultiCheckBoxWidget
 from zope.app.browser.form.tests.test_browserwidget import BrowserWidgetTest
 from zope.interface.verify import verifyClass, verifyObject
@@ -24,7 +24,7 @@
 class MultiCheckBoxWidgetTest(BrowserWidgetTest):
     """Documents and tests the multi checkbox widget.
         
-        >>> verifyClass(IEditWidget, MultiCheckBoxWidget)
+        >>> verifyClass(IInputWidget, MultiCheckBoxWidget)
         True
     """
 


=== Zope3/src/zope/app/browser/form/tests/test_multilistwidget.py 1.8.34.1 => 1.8.34.2 ===
--- Zope3/src/zope/app/browser/form/tests/test_multilistwidget.py:1.8.34.1	Thu Feb 26 00:10:50 2004
+++ Zope3/src/zope/app/browser/form/tests/test_multilistwidget.py	Mon Mar  1 18:33:08 2004
@@ -16,7 +16,7 @@
 """
 import unittest, doctest
 
-from zope.app.interfaces.form import IEditWidget
+from zope.app.interfaces.form import IInputWidget
 from zope.app.browser.form.widget import MultiListWidget
 from zope.app.browser.form.tests.test_browserwidget import BrowserWidgetTest
 from zope.interface.verify import verifyClass, verifyObject
@@ -24,7 +24,7 @@
 class MultiListWidgetTest(BrowserWidgetTest):
     """Documents and tests the multi-list widget.
         
-        >>> verifyClass(IEditWidget, MultiListWidget)
+        >>> verifyClass(IInputWidget, MultiListWidget)
         True
     """
 


=== Zope3/src/zope/app/browser/form/tests/test_objectwidget.py 1.5.22.1 => 1.5.22.2 ===
--- Zope3/src/zope/app/browser/form/tests/test_objectwidget.py:1.5.22.1	Thu Feb 26 00:10:50 2004
+++ Zope3/src/zope/app/browser/form/tests/test_objectwidget.py	Mon Mar  1 18:33:08 2004
@@ -22,10 +22,9 @@
 from zope.schema.interfaces import ITextLine
 from zope.publisher.browser import TestRequest
 from zope.schema import Object, TextLine
-from zope.app.interfaces.form import IEditWidget
+from zope.app.interfaces.form import IInputWidget
 from zope.app.browser.form.widget import TextWidget, ObjectWidget
 from zope.interface.verify import verifyClass, verifyObject
-from zope.app.interfaces.form import IEditWidget
 
 from zope.app.browser.form.tests.test_browserwidget import BrowserWidgetTest
 
@@ -38,7 +37,7 @@
 class ObjectWidgetTest(BrowserWidgetTest):
     """Documents and tests the object widget.
         
-        >>> verifyClass(IEditWidget, ObjectWidget)
+        >>> verifyClass(IInputWidget, ObjectWidget)
         True
     """
 
@@ -48,7 +47,7 @@
         return ObjectWidget(context, request, **kw)
 
     def setUpContent(self, desc=u''):
-        ztapi.browserViewProviding(ITextLine, TextWidget, IEditWidget)
+        ztapi.browserViewProviding(ITextLine, TextWidget, IInputWidget)
 
         class ITestContent(Interface):
             foo = self._FieldFactory(
@@ -76,7 +75,7 @@
     def setUp(self):
         BrowserWidgetTest.setUp(self)
         self.field = Object(ITestContact, __name__=u'foo')
-        ztapi.browserViewProviding(ITextLine, TextWidget, IEditWidget)
+        ztapi.browserViewProviding(ITextLine, TextWidget, IInputWidget)
 
     def test_applyChanges(self):
         self.request.form['field.foo.name'] = u'Foo Name'


=== Zope3/src/zope/app/browser/form/tests/test_passwordwidget.py 1.8.34.1 => 1.8.34.2 ===
--- Zope3/src/zope/app/browser/form/tests/test_passwordwidget.py:1.8.34.1	Thu Feb 26 00:10:50 2004
+++ Zope3/src/zope/app/browser/form/tests/test_passwordwidget.py	Mon Mar  1 18:33:08 2004
@@ -16,7 +16,7 @@
 """
 import unittest, doctest
 
-from zope.app.interfaces.form import IEditWidget
+from zope.app.interfaces.form import IInputWidget
 from zope.app.browser.form.widget import PasswordWidget
 from zope.app.browser.form.tests.test_browserwidget import BrowserWidgetTest
 from zope.interface.verify import verifyClass, verifyObject
@@ -24,7 +24,7 @@
 class PasswordWidgetTest(BrowserWidgetTest):
     """Documents and tests the password widget.
 
-        >>> verifyClass(IEditWidget, PasswordWidget)
+        >>> verifyClass(IInputWidget, PasswordWidget)
         True
     """
 


=== Zope3/src/zope/app/browser/form/tests/test_radiowidget.py 1.10.34.1 => 1.10.34.2 ===
--- Zope3/src/zope/app/browser/form/tests/test_radiowidget.py:1.10.34.1	Thu Feb 26 00:10:50 2004
+++ Zope3/src/zope/app/browser/form/tests/test_radiowidget.py	Mon Mar  1 18:33:08 2004
@@ -16,7 +16,7 @@
 """
 import unittest, doctest
 
-from zope.app.interfaces.form import IEditWidget
+from zope.app.interfaces.form import IInputWidget
 from zope.app.browser.form.widget import RadioWidget
 from zope.app.browser.form.tests.test_browserwidget import BrowserWidgetTest
 from zope.interface.verify import verifyClass, verifyObject
@@ -24,7 +24,7 @@
 class RadioWidgetTest(BrowserWidgetTest):
     """Documents and tests the radio widget.
         
-        >>> verifyClass(IEditWidget, RadioWidget)
+        >>> verifyClass(IInputWidget, RadioWidget)
         True
     """
 


=== Zope3/src/zope/app/browser/form/tests/test_sequencewidget.py 1.6.20.1 => 1.6.20.2 ===
--- Zope3/src/zope/app/browser/form/tests/test_sequencewidget.py:1.6.20.1	Thu Feb 26 00:10:50 2004
+++ Zope3/src/zope/app/browser/form/tests/test_sequencewidget.py	Mon Mar  1 18:33:08 2004
@@ -22,7 +22,7 @@
 from zope.schema.interfaces import ITextLine, ValidationError
 from zope.publisher.browser import TestRequest
 from zope.schema import Tuple, List, TextLine
-from zope.app.interfaces.form import IEditWidget
+from zope.app.interfaces.form import IInputWidget
 from zope.app.browser.form.widget import TupleSequenceWidget
 from zope.app.browser.form.widget import ListSequenceWidget
 from zope.interface.verify import verifyClass, verifyObject
@@ -32,9 +32,9 @@
 class SequenceWidgetTest(BrowserWidgetTest):
     """Documents and tests the tuple and list (sequence) widgets.
     
-        >>> verifyClass(IEditWidget, TupleSequenceWidget)
+        >>> verifyClass(IInputWidget, TupleSequenceWidget)
         True
-        >>> verifyClass(IEditWidget, ListSequenceWidget)
+        >>> verifyClass(IInputWidget, ListSequenceWidget)
         True
     """
 
@@ -53,7 +53,7 @@
         self.field = Tuple(
             __name__=u'foo',
             value_type=TextLine(__name__=u'bar'))
-        ztapi.browserViewProviding(ITextLine, TextWidget, IEditWidget)
+        ztapi.browserViewProviding(ITextLine, TextWidget, IInputWidget)
 
     def test_haveNoData(self):
         self.failIf(self._widget.hasInput())


=== Zope3/src/zope/app/browser/form/tests/test_textareawidget.py 1.9.34.1 => 1.9.34.2 ===
--- Zope3/src/zope/app/browser/form/tests/test_textareawidget.py:1.9.34.1	Thu Feb 26 00:10:50 2004
+++ Zope3/src/zope/app/browser/form/tests/test_textareawidget.py	Mon Mar  1 18:33:08 2004
@@ -16,7 +16,7 @@
 """
 import unittest, doctest
 
-from zope.app.interfaces.form import IEditWidget
+from zope.app.interfaces.form import IInputWidget
 from zope.app.browser.form.widget import TextAreaWidget
 from zope.app.browser.form.tests.test_browserwidget import BrowserWidgetTest
 from zope.interface.verify import verifyClass, verifyObject
@@ -24,7 +24,7 @@
 class TextAreaWidgetTest(BrowserWidgetTest):
     """Documents and tests the text area widget.
 
-        >>> verifyClass(IEditWidget, TextAreaWidget)
+        >>> verifyClass(IInputWidget, TextAreaWidget)
         True
     """
 


=== Zope3/src/zope/app/browser/form/tests/test_textwidget.py 1.7.34.1 => 1.7.34.2 ===
--- Zope3/src/zope/app/browser/form/tests/test_textwidget.py:1.7.34.1	Thu Feb 26 00:10:50 2004
+++ Zope3/src/zope/app/browser/form/tests/test_textwidget.py	Mon Mar  1 18:33:08 2004
@@ -19,14 +19,14 @@
 from zope.interface.verify import verifyClass, verifyObject
 from zope.schema import TextLine
 
-from zope.app.interfaces.form import IEditWidget
+from zope.app.interfaces.form import IInputWidget
 from zope.app.browser.form.widget import TextWidget
 from zope.app.browser.form.tests.test_browserwidget import BrowserWidgetTest
 
 class TextWidgetTest(BrowserWidgetTest):
     """Documents and tests the text widget.
 
-        >>> verifyClass(IEditWidget, TextWidget)
+        >>> verifyClass(IInputWidget, TextWidget)
         True
     """
 




More information about the Zope3-Checkins mailing list