[Zope] WebDAV or FTP "type"s?

Andreas Jung Andreas Jung" <andreas@zope.com
Tue, 11 Dec 2001 14:13:03 -0500


Storing files through FTP/WebDAV workes in the same way as
PUT requests using HTTP (because FTP requests are masqueraded
as HTTP requests inside Zope).

For your purpose I would write a small Product that
subclasses OFS.Folder and overrides either PUT() or PUT_factory()
to handle the storage of the documents on your own. 
Look either in the .py files in lib/python/OFS for examples or
in the CMF sources.

Andreas

    ---------------------------------------------------------------------
   -    Andreas Jung                            Zope Corporation       -
  -   EMail: andreas@zope.com                http://www.zope.com      -
 -  "Python Powered"                       http://www.python.org     - 
  -   "Makers of Zope"                       http://www.zope.org      - 
   -                  "Life is a fulltime occupation"                  -
    ---------------------------------------------------------------------


----- Original Message ----- 
From: "Derek Simkowiak" <dereks@realloc.net>
To: <zope@zope.org>
Sent: Tuesday, December 11, 2001 13:52
Subject: [Zope] WebDAV or FTP "type"s?


> 
> I asked this before, as part of a longer email, but got no
> response.
> 
> How do I specify the "type" for objects which are uploaded via
> WebDAV or FTP?  That is, I want *.html (or *.css or *.js) to be something
> other than a DTML Document (or DTML Method).  Where do I specify that?
> 
> Also, I want *.jpg and *.gif to be something other than "Image".
> 
> This is the core question for using Zope to solve my clients'
> problem.
> 
> 
> Thank You,
> Derek Simkowiak
> dereks@realloc.net
> 
> 
> _______________________________________________
> 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 )
>