mirror of
https://github.com/Kozea/Radicale.git
synced 2025-04-06 22:57:36 +03:00
Add content type for collection items
This commit is contained in:
parent
b7aa5c8d14
commit
dd7f886fcc
1 changed files with 3 additions and 0 deletions
|
@ -513,6 +513,9 @@ def report(path, xml_request, collection):
|
||||||
element = ET.Element(tag)
|
element = ET.Element(tag)
|
||||||
if tag == _tag("D", "getetag"):
|
if tag == _tag("D", "getetag"):
|
||||||
element.text = item.etag
|
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"),
|
elif tag in (_tag("C", "calendar-data"),
|
||||||
_tag("CR", "address-data")):
|
_tag("CR", "address-data")):
|
||||||
if isinstance(item, ical.Component):
|
if isinstance(item, ical.Component):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue