[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/Image/Views/Browser/tests - testImageUpload.py:1.2

Holger Krekel hpk@devel.trillke.net
Thu, 5 Dec 2002 08:27:37 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/Image/Views/Browser/tests
In directory cvs.zope.org:/tmp/cvs-serv27419/lib/python/Zope/App/OFS/Content/Image/Views/Browser/tests

Modified Files:
	testImageUpload.py 
Log Message:
- refactored/renamed the fields in IField.py interfaces 
  together with Martijn Faassen to have expressive and
  consistent names.

- please note that now the 'required' field defaults
  to true. you have to explicitly state that you 
  want a Field to be optional (i.e. non-required).

- improved the docstrings

- modified the unittests to reflect the new situation



=== Zope3/lib/python/Zope/App/OFS/Content/Image/Views/Browser/tests/testImageUpload.py 1.1 => 1.2 ===
--- Zope3/lib/python/Zope/App/OFS/Content/Image/Views/Browser/tests/testImageUpload.py:1.1	Mon Nov 11 16:08:13 2002
+++ Zope3/lib/python/Zope/App/OFS/Content/Image/Views/Browser/tests/testImageUpload.py	Thu Dec  5 08:27:05 2002
@@ -29,7 +29,7 @@
 from Zope.ComponentArchitecture.GlobalViewService \
      import provideView, setDefaultViewName
 from Zope.App.Forms.Views.Browser.Widget import BytesWidget, BytesAreaWidget
-from Zope.Schema.IField import IField, ILine, IBytes
+from Zope.Schema.IField import IField, IBytesLine, IBytes
 from Zope.Publisher.Browser.IBrowserPresentation import IBrowserPresentation
 
 class IU(ImageUpload, EditView):
@@ -43,7 +43,7 @@
 
         # Configure the widget views
         setDefaultViewName(IField, IBrowserPresentation, "widget")
-        provideView(ILine, "widget", IBrowserPresentation, BytesWidget)
+        provideView(IBytesLine, "widget", IBrowserPresentation, BytesWidget)
         provideView(IBytes, "widget", IBrowserPresentation, BytesAreaWidget)
 
         icondir = os.path.split(Zope.App.OFS.Content.Image.__file__)[0]