1.1 --- a/imiptools/client.py Sat Mar 28 01:11:56 2015 +0100
1.2 +++ b/imiptools/client.py Tue Mar 31 14:31:08 2015 +0200
1.3 @@ -35,13 +35,18 @@
1.4
1.5 if added or removed:
1.6 attendees = uri_items(obj.get_items("ATTENDEE") or [])
1.7 + sequence = obj.get_value("SEQUENCE")
1.8
1.9 if removed:
1.10 remaining = []
1.11
1.12 for attendee, attendee_attr in attendees:
1.13 if attendee in removed:
1.14 - if attendee_attr.get("PARTSTAT") in ("ACCEPTED", "TENTATIVE"):
1.15 +
1.16 + # Without a sequence number, assume that the event has not
1.17 + # been published and that attendees can be silently removed.
1.18 +
1.19 + if sequence is not None:
1.20 to_cancel.append((attendee, attendee_attr))
1.21 else:
1.22 remaining.append((attendee, attendee_attr))