From: chrysn Date: Thu, 3 Apr 2014 13:11:11 +0000 (+0200) Subject: support the address-data report entry X-Git-Url: http://git.samba.org/samba.git/?a=commitdiff_plain;h=541c018f144d53f0067baca655e58cf4f263abab;p=jelmer%2Fcalypso.git support the address-data report entry rfc6352 defines CARDDAV:address-data as a way to include the body of a card in a report result. it also specifies that the client can restrict the list of properties that should be returned about the resource in the CARDDAV:address-data line in the report request, but implementing the simple case (as was done with calendar-data before) is sufficient to make the davdroid client happy. --- diff --git a/calypso/xmlutils.py b/calypso/xmlutils.py index 127076c..af2ad86 100644 --- a/calypso/xmlutils.py +++ b/calypso/xmlutils.py @@ -387,6 +387,8 @@ def report(path, xml_request, collection): element.text = item.etag elif tag == _tag("C", "calendar-data"): element.text = item.text + elif tag == _tag("A", "address-data"): + element.text = item.text prop.append(element) status = ET.Element(_tag("D", "status"))