From 940ad8ca98401329f54b8c7f7eace44ee323d420 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Mon, 10 Aug 2009 16:25:40 +0000 Subject: [PATCH] Monotone-Parent: 6d46b1f98d1e4729c6c951fd4d0ce045cda38d4f Monotone-Revision: de8547b6667acdfc158bfc2d3409a18bf09e64d6 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-08-10T16:25:40 Monotone-Branch: ca.inverse.sogo --- Tests/propfind.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Tests/propfind.py b/Tests/propfind.py index a7d8fccef..385360be2 100755 --- a/Tests/propfind.py +++ b/Tests/propfind.py @@ -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"])