[Zope] Rendering for WebDAV access???

Johan Carlsson johanc@easypublisher.com
Fri, 27 Jun 2003 16:04:14 +0200


Dieter Maurer wrote:
> Johan Carlsson wrote at 2003-6-26 12:12 +0200:
>  > Which method is called when a WebDAV URL is called?
>  > 
>  > I thought it was either index_html/__call__ or  document_src (when using
>  > the source port). Now I don't know anymore, or maybe I'm just 
>  > experienceing a "bad" cache algoritm but I can't get anything
>  > but an empty string.
>  > 
>  > I'm using WebDrive.
> 
> The code is in "ZPublisher.BaseRequest.BaseRequest.traverse"....

The request never even got there, because it was never sent.

What I notice after a while was that my object had det size 0?
Now WebDrive is smart and doesn't get resources what are empty.
The problem is that I hadn't created a get_size method in my class,
and since it wasn't based on File or DTMLMethod (which declare get_size)
it didn't have any size.

So besides implementing document_src one needs to implement get_size.


The following attributes (callables or non-callables)
isn't bad to have either:

content_type, default_content_type, isAnObjectManager, id


Is it possible to override dav__creationdate(self) in any way, without
tusching PropertySheets.py, so it accutally returns the creation_date?

I think it should default to absattr(self.CreationDate).

Best Regards,
Johan Carlsson