[Zope3-Users] IContainer as IReadFile in WebDav

Alek Kowalczyk thealx at poczta.onet.pl
Fri Feb 16 11:07:29 EST 2007


Hi,

I have the following objects structure:

ISomeContainer (subclass IContainer)
  IPlot (subclass of IContainer)
    IPlotPoint (subclass IContained)

IPlotPoint is rather a simple object, containing X and Y of the point
I would like to provide all the IPlot's in ISomeContainer as CSV files using
WebDAV, to allow easy getting the data into Excel.

The problem is that for some reason WebDAV always list all IPlot's as Web
Folders, not as files. I cannot make zope to list IPlot as file in WebDAV Folder.

I don't know how to override this. I wrote my own adapter for IPlot, but it
seems to be never called:

<adapter for=".interfaces.plot.IPlot"
 provides="zope.filerepresentation.interfaces.IReadDirectory"
 factory=".csv.PlotAsCsvFile" permission="zope.Public" />

How to wire this adapter into WebDav? Should I do that another way?



  



More information about the Zope3-users mailing list