Monotone-Parent: 6d46b1f98d1e4729c6c951fd4d0ce045cda38d4f

Monotone-Revision: de8547b6667acdfc158bfc2d3409a18bf09e64d6

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-08-10T16:25:40
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2009-08-10 16:25:40 +00:00
parent 12c629ff1f
commit 940ad8ca98
+6 -4
View File
@@ -6,6 +6,7 @@ import webdavlib
import sys
import getopt
import xml.dom.ext
def parseArguments():
arguments = {}
@@ -36,8 +37,9 @@ else:
client = webdavlib.WebDAVClient(hostname, port, username, password)
propfind = webdavlib.WebDAVPROPFIND(resource, properties, depth)
client.execute(propfind)
print propfind.response["body"]
# if propfind.response.has_key("document"):
# print ("document tree: %s"
# % xml.etree.ElementTree.dump(propfind.response["document"]))
print "response:\n\n%s" % propfind.response["body"]
if propfind.response.has_key("document"):
print "document tree:"
xml.dom.ext.PrettyPrint(propfind.response["document"])