From bff01db29b6c0c2010a04b832627acf08166ff55 Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Thu, 5 Jan 2012 21:58:50 +0100 Subject: [PATCH] Manage addressbook-multiget and address-data --- radicale/xmlutils.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/radicale/xmlutils.py b/radicale/xmlutils.py index 81e1a1d..1f301c8 100644 --- a/radicale/xmlutils.py +++ b/radicale/xmlutils.py @@ -415,7 +415,9 @@ def report(path, xml_request, collection): props = [prop.tag for prop in prop_element] if collection: - if root.tag == _tag("C", "calendar-multiget"): + if root.tag in ( + _tag("C", "calendar-multiget"), + _tag("CR", "addressbook-multiget")): # Read rfc4791-7.9 for info hreferences = set( href_element.text for href_element @@ -463,7 +465,8 @@ def report(path, xml_request, collection): element = ET.Element(tag) if tag == _tag("D", "getetag"): element.text = item.etag - elif tag == _tag("C", "calendar-data"): + elif tag in ( + _tag("C", "calendar-data"), _tag("CR", "address-data")): if isinstance(item, ical.Component): element.text = ical.serialize( collection_tag, collection_headers,