[Zope-Checkins] CVS: Zope/lib/python/OFS - Folder.py:1.96.6.1

Andreas Jung andreas@zope.com
Tue, 6 Nov 2001 14:25:35 -0500


Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv6016/lib/python/OFS

Modified Files:
      Tag: ajung-webdav-debug
	Folder.py 
Log Message:
added support for MKCOL_handler hook through FTP



=== Zope/lib/python/OFS/Folder.py 1.96 => 1.96.6.1 ===
 import AccessControl.Role, webdav.Collection, FindSupport
 from webdav.WriteLockInterface import WriteLockInterface
+from CopySupport import eNoItemsSpecified
 from AccessControl import Unauthorized
 
 from Globals import DTMLFile
@@ -112,6 +113,11 @@
     value, an 'index_html' and a 'UserFolder' objects are created respectively
     in the new folder.
     """
+
+    # Provide MKCOL_handler functionality also through FTP
+    if hasattr(self,"MKCOL_handler"):
+        return self.MKCOL_handler(id,REQUEST=REQUEST)
+
     ob=Folder()
     ob.id=str(id)
     ob.title=title
@@ -169,6 +175,7 @@
         SimpleItem.Item.manage_options+
         FindSupport.FindSupport.manage_options
         )
+
 
     __ac_permissions__=()