propfind: fix offering of C:supported-calendar-component-set
This commit is contained in:
@@ -265,12 +265,14 @@ def xml_propfind_response(
|
|||||||
elif tag == xmlutils.make_clark("C:supported-calendar-component-set"):
|
elif tag == xmlutils.make_clark("C:supported-calendar-component-set"):
|
||||||
human_tag = xmlutils.make_human_tag(tag)
|
human_tag = xmlutils.make_human_tag(tag)
|
||||||
if is_collection and is_leaf:
|
if is_collection and is_leaf:
|
||||||
components_text = collection.get_meta(human_tag)
|
components = []
|
||||||
if components_text:
|
if collection.tag == "VCALENDAR":
|
||||||
components = components_text.split(",")
|
components_text = collection.get_meta(human_tag)
|
||||||
else:
|
if components_text:
|
||||||
components = ["VTODO", "VEVENT", "VJOURNAL"]
|
components = components_text.split(",")
|
||||||
if share_bday_automap:
|
else:
|
||||||
|
components = ["VTODO", "VEVENT", "VJOURNAL"]
|
||||||
|
elif collection.tag == "VADDRESSBOOK" and share_bday_automap:
|
||||||
# enforce VEVENT-only
|
# enforce VEVENT-only
|
||||||
components = ["VEVENT"]
|
components = ["VEVENT"]
|
||||||
for component in components:
|
for component in components:
|
||||||
|
|||||||
Reference in New Issue
Block a user