[Tools-dev] davclient only supported on Python 2.5?

Mikeal Rogers mikeal at osafoundation.org
Tue Feb 13 16:02:09 PST 2007


Thanks again for this feedback.

Today I was writing a new protocol test for cosmo and realized I  
really needed that propfind feature so I implemented it.

All fixes and new propfind feature are checked in and a new source  
distribution is in the cheeseshop.

-Mikeal

On Feb 9, 2007, at 5:51 AM, Mark Mc Mahon wrote:

> Hi,
>
> I noticed that there were a number of things that only appeared to be
> supported on 2.5.
>
> To fix the import of element tree on 2.4
> try:
>    from xml.etree import ElementTree
> except ImportError:
>    from elementtree import ElementTree
>
> It also seemed like you were expecting urlparse to return an object of
> some kind - and on my machine (2.4.3) it returns a tuple.
>
> so things like
>   self._url.netloc
> need to be changed to
>   self._url[1]
>
> I haven't tried all the functionality at this point (in fact just
> propfind). I would have expected propfind to return a dictionary or
> something like that (it doesn't return anything)
>
> It also looks to me like it should be findall in the following line  
> (258)...
>        locks = self.response.etree.finall('.//{DAV:}locktoken')
> though I haven't run code that ran over that.
>
> I am interested in Dav clients - so I gave this a whirl - thanks :-)
>
> Mark
> _______________________________________________
> Tools-dev mailing list
> Tools-dev at osafoundation.org
> http://lists.osafoundation.org/mailman/listinfo/tools-dev

-------------- 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 : http://lists.osafoundation.org/pipermail/tools-dev/attachments/20070213/c8ecf369/PGP.pgp


More information about the Tools-dev mailing list