http dav support
Robey Pointer
robey at lag.net
Tue Nov 15 01:11:33 GMT 2005
On 14 Nov 2005, at 16:17, John A Meinel wrote:
> Robey Pointer wrote:
>> Really cool/interesting summary of UBZ, thanks Aaron. :)
>>
>> Reading it brought up this question: Is anyone working on or
>> investigating HTTP DAV support?
>>
>> I did a quick google and it looks like there's a standard (tiny!)
>> davlib
>> module out there for python. Debian even has it as an individual
>> package. So I think it might actually be pretty simple to get DAV
>> working, but I don't want to step on anyone's toes if someone else is
>> already playing with it, since I know very little about DAV.
>
> I don't think anyone has looked into it yet. There are a few people
> who
> claim it is a must for them.
>
> If you want to give davlib a look, and implement a DavTransport,
> similar
> to the SftpTransport, that would be nice.
>
> We might have to work out some policy, since we would want people to
> still have access to read-only http access, even if they don't have
> davlib installed, but it would be nice to be able to upgrade them to
> write-access if the remote location supports it.
>
> As far as I know, read-only webdav is just plain http. It is only when
> you go to write that you need webdav.
> So maybe we could try to load davlib, and if it loads, then we have
> implementations for the write() functions in HttpTransport. If it
> fails
> to load, then we just complain that you must have davlib installed to
> have write support.
>
> Probably this is easiest done to start with by creating a plugin, and
> having it inherit from http transport, and then register itself as the
> http handler. (or only register itself if davlib is available).
I agree that it should really be integrated with the existing HTTP
support. And AFAIK you're correct that read-only DAV support is just
HTTP as usual.
I don't think we'd even need to add a dependency to davlib. I looked
at the one I found on the web here:
http://www.lyra.org/greg/python/davlib.py
and compared that to the one in debian, and they're exactly the same
except for a single import line (davlib used to depend on another
module, which is now part of python since 2.3). The entire file is
300 lines so we could just drop a copy into the bzr tree.
I'll play with it this week and see how it shakes out. I'm
moderately optimistic that it may be a minor change.
robey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051114/2325bb70/attachment.pgp
More information about the bazaar
mailing list