[Zope] webdav: collection does not work when I use file type object as baseclass

Robert Rottermann robert@redcor.ch
Tue, 2 Apr 2002 23:57:59 +0200


I have been digging into the problem some more.
The culprit seems to be the method get_size()
This Method is not defined for a collection (I did not find it  at least)
but for most of the "file" types.
Webdav probably expects in getsize to find the length of the directory but
gets the length something else.

Does anybody know what webdav expects as result of get_size()?

I tried with
    def get_size ( self ) :
        return self.objectItems()

this works but ...


Robert
----- Original Message -----
From: "Robert Rottermann" <robert@redcor.ch>
To: <zope@zope.org>
Sent: Tuesday, April 02, 2002 11:10 PM
Subject: [Zope] webdav: collection does not work when I use file type object
as baseclass


> Hi there,
>
> I am creating a product that has a folderish and a file type aspect.
> I therefore use both ObjectManager and DTMLMethod as its base classes.
>
> When I do that, I can not use Webdav to access folders which contains
> instances of my product anymore.
> If I get rid of the DTMLMethod as base class things work fine again.
>
> Is such a combination of base classes sensible?  If yes, what must I do to
> have webdav working?
>
> thanks for your help.
>
> Robert
> www.redcor.ch
>
>
>
> _______________________________________________
> 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 )
>