[Zope-dev] Re: Broken FTP ZClass PUT 2.3.0

Tres Seaver tseaver@digicool.com
Mon, 29 Jan 2001 16:59:05 -0500 (EST)


On Mon, 29 Jan 2001, Sean Treadway wrote:

> I have recently upgraded to 2.3.0 and it has broken my FTP
> support.  When I try to do an FTP upload to an instance of my
> ZClass, it fails because it is calling the default PUT of a
> webdav.Collection instead of the PUT of my python base class.
> 
> My setup is such:
> 
> A Python product with a ObjectManger(ish) base class that
> overrides PUT to do special manipulation of large files.  I
> have a bunch of ZClasses that inherit from my base classes for
> the management pages, meta data handling and 'live' updates.
> 
> Now, instead of PUT being called on my base class, it is being
> called on webdav.Collection which throws an exception.
> 
> In 2.3.0 ZClass inherits Base, webdav.Collection and SimpleItem
> where in 2.2.x ZClass only inherits from SimpleItem.
> 
> Is there any way to get my old functionality back (without
> editing Zope)?

If I understand your motive correctly, you have been overriding
PUT in order to control the type of the subobject created?  If
so, please have a look at the "hookable PUT" proposal, which I
implemented for Zope 2.3:

  http://dev.zope.org/Wikis/DevSite/Proposals/HookablePUTCreation

Tres.
-- 
===============================================================
Tres Seaver                                tseaver@digicool.com
Digital Creations     "Zope Dealers"       http://www.zope.org