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

Mikeal Rogers mikeal at osafoundation.org
Fri Feb 9 11:51:52 PST 2007


> 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
>

Fixed in trunk.

I would like to add elementtree as a dependency in setup.py but I  
don't know how to make it a dependency only in the case that you're  
using python2.4. My setuptools skills a lacking in that area.

> 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 didn't realized that urlparse had changed for 2.5, I noticed that I  
had some nice attributes but I thought they had just always been  
there :)

Fixed in trunk.

>
> 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.

This is a good feature request. I'll write it when I have a chance,  
if you'd like to log it as a feature request you can https:// 
bugzilla.osafoundation.org/enter_bug.cgi?product=Tools .

Bugs for davclient should be logged against the "Tools" Product with  
a component of "davclient".

I'll work on this when I have some time, or if you'd like to send me  
a diff I'd be happy to commit it.


>
> I am interested in Dav clients - so I gave this a whirl - thanks :-)

Thanks for the bug fixes :)

I'll roll another source dist and stick it in the cheeseshop when I  
have time.

>
> 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/20070209/af70b288/PGP.pgp


More information about the Tools-dev mailing list