tishon/pyazure — Issue #1: BlobStorage.list_blobs broken
Author: bmb
Created: 2011-10-18 21:12:22+00:00
State: open

- req = Request("%s/$s?comp=list" % (self.get_base_url(), container_name)
+ req = Request("%s/%s?comp=list" % (self.get_base_url(), container_name)

- containers = dom.findall("Blob")
+ containers = dom.findall(".//Blob")

Same XPath changes needed in the list_containers method, I think. Note that findall with unqualified sub-element name may work as is with lxml (I don't know, haven't been able to test), but it doesn't with stdlib xml.etree.ElementTree, which I added like so:
-from lxml import etree
+try:
+ from lxml import etree
+except ImportError:
+ from xml.etree import ElementTree as etree