[Zope3-checkins] CVS: Zope3/src/zope/app/dav/ftests - dav.py:1.2

Jim Fulton jim at zope.com
Sun Sep 21 13:31:16 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/dav/ftests
In directory cvs.zope.org:/tmp/cvs-serv12246/src/zope/app/dav/ftests

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


=== Zope3/src/zope/app/dav/ftests/dav.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/dav/ftests/dav.py:1.1	Mon Jun 23 13:21:08 2003
+++ Zope3/src/zope/app/dav/ftests/dav.py	Sun Sep 21 13:30:44 2003
@@ -37,13 +37,13 @@
             try:
                 folder = folder[id]
             except KeyError:
-                folder.setObject(id, Folder())
+                folder[id] = Folder()
                 folder = folder[id]
         return folder, path[-1]
 
     def createObject(self, path, obj):
         folder, id = self.createFolders(path)
-        folder.setObject(id, obj)
+        folder[id] = obj
         get_transaction().commit()
 
     def addPage(self, path, content):




More information about the Zope3-Checkins mailing list