[Zope] Automatically add/remove file extensions via FTP or WebDAV?

Casey Duncan cduncan@kaivo.com
Fri, 29 Jun 2001 11:34:12 -0600


Hamish Lawson wrote:
> 
> Having Zope IDs with dots in them is a bit of thorny question.
> 
> On the one hand, for downloading and uploading files through FTP or
> WebDAV and for working with external tools, it may be useful for files
> to have an extension.
> 
> On the other hand, dots in IDs can be awkward for Zope. Also it can be
> advantageous to be able to have 'typeless' URLs, allowing you to change
> the type of object fulfilling a given role while keeping the same ID.
> 
> So how about an option whereby objects have an appropriate file
> extension appended automatically when presented through Zope's FTP or
> WebDAV servers, and conversely have the extension stripped off when
> uploaded into Zope? Has this already been suggested?
> 
> Hamish Lawson
> 

This sounds like an excellent idea. I implemented something similar to
this for my DocumentLibrary product. If you have a property called
"filename" on a document file, it can be used as an attribute to
download it with a "Windoze friendly" name.

I think something similar to this could be used for FTP/WebDAV. The
names there could show an extension (perhaps even based on MIME type by
default), but it would not show in Zope in the Id.

There would just need to be some mechanism to turn this on or off.
Either at the ZMI or the FTP/WebDAV session level. Hmmm...
-- 
| Casey Duncan
| Kaivo, Inc.
| cduncan@kaivo.com
`------------------>