summaryrefslogtreecommitdiff
path: root/meetingtools
diff options
context:
space:
mode:
authorJohan Lundberg <lundberg@nordu.net>2014-03-20 10:41:05 +0100
committerJohan Lundberg <lundberg@nordu.net>2014-03-20 10:41:05 +0100
commit45b21cf3874160b29c7733bec80083d41bf70a6c (patch)
tree9bfa0a6e4179ffa682131b42305076f791b36cf6 /meetingtools
parent44f70dacd4fb586fdc80f9e3455cf59b35f44fa7 (diff)
Added pretty print to api result.
Diffstat (limited to 'meetingtools')
-rw-r--r--meetingtools/ac/api.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/meetingtools/ac/api.py b/meetingtools/ac/api.py
index 7a9798f..110c79d 100644
--- a/meetingtools/ac/api.py
+++ b/meetingtools/ac/api.py
@@ -75,6 +75,9 @@ class ACPResult():
logger.debug(lxml.etree.tostring(self.et))
return _first_or_none(self.et.xpath('//principal'))
+ def pretty_print(self):
+ return lxml.etree.tostring(self.et, pretty_print=True)
+
def _enc(v):
ev = v