From dd7f886fcc51823a6acde30637b5cc387397bd4b Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Tue, 14 May 2013 13:18:12 +0200 Subject: [PATCH] Add content type for collection items --- radicale/xmlutils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/radicale/xmlutils.py b/radicale/xmlutils.py index 9bd49ba..a3d7236 100644 --- a/radicale/xmlutils.py +++ b/radicale/xmlutils.py @@ -513,6 +513,9 @@ def report(path, xml_request, collection): element = ET.Element(tag) if tag == _tag("D", "getetag"): element.text = item.etag + elif tag == _tag("D", "getcontenttype"): + element.text = "%s; component=%s" % ( + item.mimetype, item.tag.lower()) elif tag in (_tag("C", "calendar-data"), _tag("CR", "address-data")): if isinstance(item, ical.Component):