[Zope3-checkins] CVS: Zope3/src/zope/app/http/tests - test_put.py:1.6

Jim Fulton jim at zope.com
Sun Sep 21 13:32:15 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/http/tests
In directory cvs.zope.org:/tmp/cvs-serv14092/src/zope/app/http/tests

Modified Files:
	test_put.py 
Log Message:
Changed to use __setitem__ rather than setObject

No longer use the zope container adapter.


=== Zope3/src/zope/app/http/tests/test_put.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/http/tests/test_put.py:1.5	Mon Jun 23 13:17:05 2003
+++ Zope3/src/zope/app/http/tests/test_put.py	Sun Sep 21 13:32:15 2003
@@ -21,7 +21,6 @@
 import zope.app.http.put
 from zope.publisher.browser import TestRequest
 from zope.app.interfaces.file import IWriteFile, IWriteDirectory, IFileFactory
-from zope.app.interfaces.container import IZopeWriteContainer
 from zope.app.tests.placelesssetup import PlacelessSetup
 from zope.interface import implements
 
@@ -39,9 +38,9 @@
 
 class Container:
 
-    implements(IWriteDirectory, IZopeWriteContainer, IFileFactory)
+    implements(IWriteDirectory, IFileFactory)
 
-    def setObject(self, name, object):
+    def __setitem__(self, name, object):
         setattr(self, name, object)
 
     def __call__(self, name, content_type, data):




More information about the Zope3-Checkins mailing list