ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> zope-List
zope-List
Re: [Zope] webdav: collection does not work when I use file type object as baseclass
by Robert Rottermann other posts by this author
Apr 2 2002 9:57PM messages near this date
Re: [Zope] webdav: collection does not work when I use file type object as baseclass | [Zope] how to include PHP from another server?
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@[...].ch> 
To: <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@[...].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 )
> 


_______________________________________________
Zope maillist  -  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 )
Thread:
Robert Rottermann
Robert Rottermann
Robert Rottermann
Robert Rottermann

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved