Automatically add/remove file extensions via FTP or WebDAV?
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 ____________________________________________________________ Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie
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 `------------------>
=?iso-8859-1?q?Hamish=20Lawson?= writes:
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? Personnaly, I hate any magic modifications of my ids. And '.' in ids are not really a problem for Zope.
Dieter
Hi Hamish, i'm doing exactly this with my current folder like product while I've split it up into container for content and container type for images. Container for content will only acceppt text (at the moment only html) and container for images only images of gif, jpg, png, tiff and so on. It helps us to keep the site clean and to work the same time with tools like dreamweaver. Since this is only a working outline, I have to recode it to give it out to the public. But I can prove it has been done, and it works. Regards Tino --On Freitag, 29. Juni 2001 17:52 +0100 Hamish Lawson <hamish_lawson@yahoo.co.uk> 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
____________________________________________________________ Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (4)
-
Casey Duncan -
Dieter Maurer -
Hamish Lawson -
Tino Wildenhain