[Zope-Checkins] CVS: Zope2 - NullResource.py:1.28
andreas@serenade.digicool.com
andreas@serenade.digicool.com
Wed, 6 Jun 2001 08:47:45 -0400
Update of /cvs-repository/Zope2/lib/python/webdav
In directory serenade:/tmp/cvs-serv25804
Modified Files:
NullResource.py
Log Message:
added hook for webdav/ftp mkcol (collector #2254)
--- Updated File NullResource.py in package Zope2 --
--- NullResource.py 2001/02/15 20:45:01 1.27
+++ NullResource.py 2001/06/06 12:47:45 1.28
@@ -216,7 +216,11 @@
# There was an If header, but the parent is not locked
raise 'Precondition Failed'
- parent.manage_addFolder(name)
+ # Add hook for webdav/FTP MKCOL (Collector #2254) (needed for CMF)
+# parent.manage_addFolder(name)
+ mkcol_handler = getattr(parent,'MKCOL_handler' ,parent.manage_addFolder)
+ mkcol_handler(name)
+
RESPONSE.setStatus(201)
RESPONSE.setBody('')
return RESPONSE