[Calypso] [PATCH 03/24] support the address-data report entry
Guido Günther
agx at sigxcpu.org
Sat Apr 9 11:38:55 PDT 2016
On Sat, Apr 09, 2016 at 06:25:52PM +0000, Jelmer Vernooij wrote:
> 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"))
Looks good to me.
-- Guido
More information about the Calypso
mailing list