mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-05 16:35:10 +00:00
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:
+6
-4
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user