1.1 --- a/imiptools/handlers/common.py Fri Sep 11 17:32:10 2015 +0200
1.2 +++ b/imiptools/handlers/common.py Sat Sep 12 18:13:10 2015 +0200
1.3 @@ -70,12 +70,14 @@
1.4
1.5 "Common outgoing message handling functionality mix-in."
1.6
1.7 - def is_usable(self):
1.8 + def is_usable(self, method=None):
1.9 +
1.10 + "Return whether the current object is usable with the given 'method'."
1.11
1.12 - "Return whether the current object is usable."
1.13 -
1.14 - return self.obj and self.obj.get_datetime("DTSTART") and \
1.15 - (self.obj.get_datetime("DTEND") or self.obj.get_duration("DURATION"))
1.16 + return self.obj and (
1.17 + method in ("CANCEL", "REFRESH") or
1.18 + self.obj.get_datetime("DTSTART") and
1.19 + (self.obj.get_datetime("DTEND") or self.obj.get_duration("DURATION")))
1.20
1.21 def update_event_in_freebusy(self, for_organiser=True):
1.22