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

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Mar 18 22:18:10 EST 2004


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

Modified Files:
	test_imagedata.py 
Removed Files:
	test_imageupload.py 
Log Message:


Modernized the File and Image API to rely more heavily on schemas instead of
accessor and mutator methods. Removed a lot of unnecessary cruft from the
object classes and their views.


=== Zope3/src/zope/app/file/browser/tests/test_imagedata.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/file/browser/tests/test_imagedata.py:1.2	Tue Feb 24 11:49:49 2004
+++ Zope3/src/zope/app/file/browser/tests/test_imagedata.py	Thu Mar 18 22:17:39 2004
@@ -26,7 +26,9 @@
     def testData(self):
         """ """
         image = Image('Data')
-        id = ImageData(image, None)
+        id = ImageData()
+        id.context = image
+        id.request = None
         self.assertEqual(id(), 'Data')
 
     def testTag(self):
@@ -37,7 +39,9 @@
             return '/img'
 
         image = Image()
-        fe = ImageData(image, None)
+        fe = ImageData()
+        fe.context = image
+        fe.request = None
         fe.absolute_url = absolute_url
 
         self.assertEqual(fe.tag(),

=== Removed File Zope3/src/zope/app/file/browser/tests/test_imageupload.py ===




More information about the Zope3-Checkins mailing list