[Calypso] [PATCH 03/24] support the address-data report entry

Jelmer Vernooij jelmer at jelmer.uk
Sat Apr 9 11:25:52 PDT 2016


From: chrysn <chrysn at fsfe.org>

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.
---
 calypso/xmlutils.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/calypso/xmlutils.py b/calypso/xmlutils.py
index 5478201..bbe7844 100644
--- a/calypso/xmlutils.py
+++ b/calypso/xmlutils.py
@@ -391,6 +391,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"))
-- 
2.8.0.rc3



More information about the Calypso mailing list