mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-23 04:15:26 +00:00
* Tests/Integration/propfind.py: Print headers to stderr.
the output can now easily be piped through xmllint Monotone-Parent: 228f7d730cde5a5046b0885c1ac02649ee2b7c05 Monotone-Revision: 4c9ff5822433c2ff8fcad8c7432a9575f9890b24 Monotone-Author: jraby@inverse.ca Monotone-Date: 2012-07-05T16:56:27
This commit is contained in:
@@ -38,8 +38,9 @@ client = webdavlib.WebDAVClient(hostname, port, username, password)
|
||||
propfind = webdavlib.WebDAVPROPFIND(resource, properties, depth)
|
||||
client.execute(propfind)
|
||||
|
||||
print "response:\n\n%s" % propfind.response["body"]
|
||||
sys.stderr.write("response:\n\n")
|
||||
print propfind.response["body"]
|
||||
|
||||
if propfind.response.has_key("document"):
|
||||
print "document tree:"
|
||||
sys.stderr.write("document tree:\n")
|
||||
xml.dom.ext.PrettyPrint(propfind.response["document"])
|
||||
|
||||
Reference in New Issue
Block a user