From b0452b301416806111cb1eb4cb4e43882860b938 Mon Sep 17 00:00:00 2001 From: Unrud Date: Tue, 29 Aug 2017 20:08:38 +0200 Subject: [PATCH] Detect VFREEBUSY and VALARM component names --- radicale/xmlutils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/radicale/xmlutils.py b/radicale/xmlutils.py index 5ffc095a..ef29d2ee 100644 --- a/radicale/xmlutils.py +++ b/radicale/xmlutils.py @@ -183,6 +183,9 @@ def _comp_match(item, filter_, scope="collection"): return name != tag if name != tag: return False + if name in ("VALARM", "VFREEBUSY"): + item.collection.logger.warning("Filtering %s is not supported" % name) + return True # Point #3 and #4 of rfc4791-9.7.1 components = ([item.item] if scope == "collection" else list(getattr(item, "%s_list" % tag.lower()))) @@ -637,7 +640,8 @@ def find_tag(vobject_item): """Find tag from ``vobject_item``.""" if vobject_item.name == "VCALENDAR": for component in vobject_item.components(): - if component.name in ("VTODO", "VEVENT", "VJOURNAL"): + if component.name in ("VTODO", "VEVENT", "VJOURNAL", + "VFREEBUSY", "VALARM"): return component.name return None