[Zope3-checkins] CVS: Zope3/src/zope/app/dav - mkcol.py:1.1.22.2

Jim Fulton jim at zope.com
Fri Sep 12 15:15:53 EDT 2003


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

Modified Files:
      Tag: parentgeddon-branch
	mkcol.py 
Log Message:
Can't have the tests passing, can we?

=== Zope3/src/zope/app/dav/mkcol.py 1.1.22.1 => 1.1.22.2 ===
--- Zope3/src/zope/app/dav/mkcol.py:1.1.22.1	Mon Sep  8 14:21:36 2003
+++ Zope3/src/zope/app/dav/mkcol.py	Fri Sep 12 15:15:23 2003
@@ -17,7 +17,6 @@
 
 from zope.app.interfaces.file import IWriteDirectory
 from zope.app.interfaces.file import IDirectoryFactory
-from zope.app.interfaces.container import IAddTarget
 from zope.app.event import publish
 from zope.app.event.objectevent import ObjectCreatedEvent
 from zope.component import queryAdapter, getAdapter
@@ -48,12 +47,10 @@
             request.response.setStatus(403)
             return ''
 
-        dir = getAdapter(dir, IAddTarget)
-
         factory = getAdapter(container, IDirectoryFactory)
         newdir = factory(name)
         publish(self.context, ObjectCreatedEvent(newdir))
-        dir.addObject(name, newdir)
+        dir[name] = newdir
 
         request.response.setStatus(201)
         return ''




More information about the Zope3-Checkins mailing list