[Calypso-commits] [calypso] 01/01: support the address-data report entry

Jelmer Vernooij jelmer at moszumanska.debian.org
Sat Apr 9 18:42:31 UTC 2016


This is an automated email from the git hooks/post-receive script.

jelmer pushed a commit to branch master
in repository calypso.

commit 541c018f144d53f0067baca655e58cf4f263abab
Author: chrysn <chrysn at fsfe.org>
Date:   Thu Apr 3 15:11:11 2014 +0200

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

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"))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/calypso/calypso.git



More information about the Calypso-commits mailing list