From 6cb148d463224a2734c10de71220326a5188c532 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Mon, 10 Aug 2009 15:12:01 +0000 Subject: [PATCH] Monotone-Parent: e949fa30ccb421b969a930914284c098d18799ff Monotone-Revision: 35e9c147975a505b9f65362ed057555a3cd24c9b Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-08-10T15:12:01 Monotone-Branch: ca.inverse.sogo --- Tests/propfind.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Tests/propfind.py b/Tests/propfind.py index 896b583ec..a7d8fccef 100755 --- a/Tests/propfind.py +++ b/Tests/propfind.py @@ -15,7 +15,6 @@ quiet = False (opts, args) = getopt.getopt(sys.argv[1:], "d:q", ["depth=", "quiet"]) for pair in opts: - print pair if (pair[0] == "-d" or pair[0] == "--depth"): depth = pair[1] elif (pair[0] == "-q" or pair[0] == "--quiet"): @@ -37,3 +36,8 @@ 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"]))