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

Guido Günther agx at sigxcpu.org
Mon May 16 01:55:07 PDT 2016


On Sun, May 15, 2016 at 10:35:30PM +0000, Jelmer Vernooij wrote:
> From: Jelmer Vernooij <jelmer at jelmer.uk>

ACK.

> 
> ---
>  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
> 
> _______________________________________________
> Calypso mailing list
> Calypso at keithp.com
> http://keithp.com/mailman/listinfo/calypso


More information about the Calypso mailing list