[Calypso] [PATCH 2/4] Check for VTODO when classifying an item ical or vcard.

Jelmer Vernooij jelmer at jelmer.uk
Sun May 15 15:35:30 PDT 2016


From: Jelmer Vernooń≥ <jelmer at jelmer.uk>

---
 calypso/webdav.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/calypso/webdav.py b/calypso/webdav.py
index 0c59cc7..e198a14 100644
--- a/calypso/webdav.py
+++ b/calypso/webdav.py
@@ -115,6 +115,8 @@ class Item(object):
             return True
         if self.object.name == 'VEVENT':
             return False
+        if self.object.name == 'VTODO':
+            return False
         if self.object.name == 'VCALENDAR':
             return False
         for child in self.object.getChildren():
@@ -122,6 +124,8 @@ class Item(object):
                 return True
             if child.name == 'VEVENT':
                 return False
+            if child.name == 'VTODO':
+                return False
         return False
 
     @property
@@ -131,6 +135,8 @@ class Item(object):
             return False
         if self.object.name == 'VEVENT':
             return True
+        if self.object.name == 'VTODO':
+            return True
         if self.object.name == 'VCALENDAR':
             return True
         for child in self.object.getChildren():
@@ -138,6 +144,8 @@ class Item(object):
                 return False
             if child.name == 'VEVENT':
                 return True
+            if child.name == 'VTODO':
+                return True
         return False
 
     @property
-- 
2.8.1



More information about the Calypso mailing list