[Zope3-dev] Completing WebDAV and zwiki

Derrick 'dman' Hudson dman at dman13.dyndns.org
Fri Aug 27 22:56:27 EDT 2004


I'd like to finish WebDAV and zwiki (at least to the point of doing
what I want it to :-)).  I would really like to use cadaver's 'edit'
command to conveniently edit wikipages in $EDITOR :-).  I need some
help.

The first problem is that zope.app.dav doesn't use the I*Directory
interfaces that it ought to.  The attached patch fixes this.  (I tried
to submit it to the collector but only Manager and Owner can do that
at this time)

However, the patch reveals two more problems :
    1) A wikipage's "content.txt" object doesn't have enough location
       information to determine its absolute_url.  This is probably a
       zwiki bug.

       How does one define the location of an object?  The code that
       fails is :
        resource_url = str(zapi.getView(self.context, 'absolute_url', request))
       AFAICT this line is correct and what's missing is the
       configuration in zwiki to define absolute_url.
                     
    2) DAV requests for the content of a file are indistinguishable
       from an ordinary HTTP request.  (From tcpflow's trace of
       cadaver's request I couldn't identify it as DAV)  HTTP requests
       don't use the filesystem representation, and thus accessing a
       wikipage's "content.txt" results in a 404 response.

       I have no idea how this should be solved.  I believe the DAV
       protocol includes a request for the source of a resource.  Is
       this really a bug in cadaver that it didn't specify wanting the
       source?  Does zope even handle source requests?

Thanks for any help or pointers or examples.

-D

-- 
After you install Microsoft Windows XP, you have the option to create
user accounts.  If you create user accounts, by default, they will have
an account type of administrator with no password.
                                                            -- bugtraq
 
www: http://dman13.dyndns.org/~dman/            jabber: dman at dman13.dyndns.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope3-dev/attachments/20040827/a7516a66/attachment.bin


More information about the Zope3-dev mailing list