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. TIA, Terry -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com
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
On Saturday 26 July 2003 12:27 am, Johan Carlsson wrote:
For FTP you can override manage_addFolder and for WebDAV you override MKCOL_handler.
Right. I see, because manage_addFolder is normally acquired for the object? So creating a manage_addFolder for the object will override the default. I guess that was kind of obvious, but it didn't occur to me. :-) I'll try that out. Thanks! Terry -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com
participants (2)
-
Johan Carlsson -
Terry Hancock