1.1 --- a/imiptools/handlers/person.py Thu May 21 18:48:10 2015 +0200
1.2 +++ b/imiptools/handlers/person.py Thu May 21 18:56:54 2015 +0200
1.3 @@ -53,6 +53,14 @@
1.4 if not self.have_new_object() or not self.is_attendee(self.user):
1.5 return False
1.6
1.7 + # Indicate the organiser's implicit attendance if mentioned in the
1.8 + # cancellation message.
1.9 +
1.10 + if cancel:
1.11 + obj_attendees = self.obj.get_value_map("ATTENDEE")
1.12 + if obj_attendees.has_key(organiser):
1.13 + obj_attendees[organiser]["PARTSTAT"] = "DECLINED"
1.14 +
1.15 # Set the complete event or an additional occurrence.
1.16
1.17 self.store.set_event(self.user, self.uid, self.recurrenceid, self.obj.to_node())
1.18 @@ -81,7 +89,9 @@
1.19 # information, so this is done here using outgoing message
1.20 # functionality.
1.21
1.22 - self.remove_event_from_freebusy(from_organiser)
1.23 + self.remove_event_from_freebusy()
1.24 +
1.25 + # Update the recipient's record of the organiser's schedule.
1.26
1.27 self.update_freebusy_from_organiser(organiser_item)
1.28