[Zope] PUT_factory for folders?

Johan Carlsson johanc@easypublisher.com
Sat, 26 Jul 2003 09:27:32 +0200


Terry Hancock wrote:
> When you FTP a file into Zope, you can create a PUT_factory 
> method in to control how it gets mapped into Zope objects.
> 
> Is there any equivalent functionality for folders -- so 
> that "mkdir" in the FTP client will make a particular type 
> of "folderish" object other than a plain Zope Folder object?
> 
> An initial look at webdav/NullResource.py suggests not, but
> it would be nice if such a thing existed.

For FTP you can override manage_addFolder and
for WebDAV you override MKCOL_handler.

Best Regards,
Johan Carlsson




-- 
Johan Carlsson          Tel: + 46 8 31 24 94
Colliberty              Mob: + 46 70 558 25 24
Torsgatan 72            Email: johanc@easypublisher.com
SE-113 37 STOCKHOLM