[Zope3-checkins] CVS: Zope3/src/zope/app/ftp/tests - test_ftpview.py:1.3.22.1

Jim Fulton jim at zope.com
Mon Sep 8 15:22:09 EDT 2003


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

Modified Files:
      Tag: parentgeddon-branch
	test_ftpview.py 
Log Message:
Checking in work in progress on parentgeddon-branch so Fred can help
me to get the tests passing.  Specific log entries will be provided
when we merge this into the head.


=== Zope3/src/zope/app/ftp/tests/test_ftpview.py 1.3 => 1.3.22.1 ===
--- Zope3/src/zope/app/ftp/tests/test_ftpview.py:1.3	Mon Jun 23 13:17:03 2003
+++ Zope3/src/zope/app/ftp/tests/test_ftpview.py	Mon Sep  8 14:21:39 2003
@@ -26,7 +26,7 @@
 from zope.app.interfaces.file import IReadDirectory, IWriteDirectory
 from zope.app.interfaces.file import IFileFactory, IDirectoryFactory
 from zope.app.interfaces.dublincore import IZopeDublinCore
-from zope.app.interfaces.container import IZopeWriteContainer
+from zope.app.interfaces.container import IAddTarget
 from zope.app.ftp import FTPView
 from zope.app.tests.placelesssetup import PlacelessSetup
 from zope.interface import implements
@@ -34,7 +34,7 @@
 class Directory(demofs.Directory):
 
     implements(IReadDirectory, IWriteDirectory, IFileFactory,
-               IDirectoryFactory, IZopeWriteContainer, IZopeDublinCore)
+               IDirectoryFactory, IAddTarget, IZopeDublinCore)
 
     modified = datetime.datetime(1990, 1,1)
 
@@ -43,16 +43,14 @@
         self.modified = datetime.datetime.now()
         return name
 
+    addObject = setObject
+
     def __call__(self, name, content_type='', data=None):
         if data:
             r = File()
             r.data = data
             return r
         return Directory()
-
-    def rename(self, old, new):
-        self[new] = self[old]
-        del self[old]
 
 class File(demofs.File):
 




More information about the Zope3-Checkins mailing list