[Zope3-checkins] CVS: Zope3/src/zope/app/file/browser/tests - test_imageupload.py:1.2.4.2

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


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

Modified Files:
      Tag: garrett-widgets2-branch
	test_imageupload.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/file/browser/tests/test_imageupload.py 1.2.4.1 => 1.2.4.2 ===
--- Zope3/src/zope/app/file/browser/tests/test_imageupload.py:1.2.4.1	Mon Mar  1 12:12:14 2004
+++ Zope3/src/zope/app/file/browser/tests/test_imageupload.py	Mon Mar  1 18:33:12 2004
@@ -24,7 +24,7 @@
 from zope.app.tests import ztapi
 from zope.app.browser.form.editview import EditView
 from zope.app.browser.form.widget import BytesWidget, BytesAreaWidget
-from zope.app.interfaces.form import IEditWidget
+from zope.app.interfaces.form import IInputWidget
 from zope.app.tests.placelesssetup import PlacelessSetup
 from zope.publisher.browser import TestRequest
 from zope.schema.interfaces import IField, IBytesLine, IBytes
@@ -44,8 +44,8 @@
         super(Test, self).setUp()
 
         # Configure the widget views
-        ztapi.browserView(IBytesLine, '', BytesWidget, providing=IEditWidget)
-        ztapi.browserView(IBytes, '', BytesAreaWidget, providing=IEditWidget)
+        ztapi.browserViewProviding(IBytesLine, BytesWidget, IInputWidget)
+        ztapi.browserViewProviding(IBytes, BytesAreaWidget, IInputWidget)
 
         icondir = os.path.split(zope.app.file.browser.__file__)[0]
         data = open(os.path.join(icondir, 'image_icon.gif'), 'rb').read()




More information about the Zope3-Checkins mailing list