[Zope] Very Strange FTP upload bug!

Stefan H. Holek stefan@epy.co.at
Fri, 01 Feb 2002 14:45:39 +0100


At 02.02.2002 02:27 +1300, Adam Warner wrote:
>If I can't robustly upload files to a zope database using FTP then I may
>have to reevaluate this specific use of zope. All I uploaded was some
>HTML source. If zope can't cope with that then I can't easily use it to
>archive HTML source material.
>
>It appears that Zope's trying to be too clever. Textual content should
>be able to be uploaded via FTP. Not rejected because of an overly
>exuberant DTML parser.

No, it appears you are trying to be too lazy ;-)

Zope will by default create DTML Documents when text files are uploaded. 
You can however use a PUT_factory to make it create whatever you heart desires.

An example PUT_factory can be found here:
<http://www.zope.org/Members/shh/Patches/PUT_factory.py>

What it basically does is mapping a MIME type to a Zope object type.

Please also read
<http://dev.zope.org/Wikis/DevSite/Proposals/HookablePUTCreation>

HTH,
Stefan