Manage addressbook-multiget and address-data
This commit is contained in:
parent
f11e78a3f4
commit
bff01db29b
@ -415,7 +415,9 @@ def report(path, xml_request, collection):
|
|||||||
props = [prop.tag for prop in prop_element]
|
props = [prop.tag for prop in prop_element]
|
||||||
|
|
||||||
if collection:
|
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
|
# Read rfc4791-7.9 for info
|
||||||
hreferences = set(
|
hreferences = set(
|
||||||
href_element.text for href_element
|
href_element.text for href_element
|
||||||
@ -463,7 +465,8 @@ def report(path, xml_request, collection):
|
|||||||
element = ET.Element(tag)
|
element = ET.Element(tag)
|
||||||
if tag == _tag("D", "getetag"):
|
if tag == _tag("D", "getetag"):
|
||||||
element.text = item.etag
|
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):
|
if isinstance(item, ical.Component):
|
||||||
element.text = ical.serialize(
|
element.text = ical.serialize(
|
||||||
collection_tag, collection_headers,
|
collection_tag, collection_headers,
|
||||||
|
Loading…
Reference in New Issue
Block a user