1.1 --- a/imiptools/handlers/person_outgoing.py Tue Mar 03 00:03:45 2015 +0100
1.2 +++ b/imiptools/handlers/person_outgoing.py Tue Mar 03 00:05:22 2015 +0100
1.3 @@ -95,18 +95,10 @@
1.4
1.5 periods = obj.get_periods_for_freebusy(tzid, get_window_end(tzid))
1.6
1.7 - if attr.get("PARTSTAT") != "DECLINED":
1.8 - self.update_freebusy(freebusy, periods)
1.9 - else:
1.10 - self.remove_from_freebusy(freebusy)
1.11 + self.update_freebusy_for_participant(freebusy, periods, attr,
1.12 + from_organiser and self.is_not_attendee(identity, obj))
1.13
1.14 - # For any parent object, refresh the updated periods.
1.15 -
1.16 - obj = self.get_parent_object(identity)
1.17 - if obj:
1.18 - periods = obj.get_periods_for_freebusy(tzid, get_window_end(tzid))
1.19 - self._update_freebusy(freebusy, periods, None)
1.20 -
1.21 + self.remove_freebusy_for_original_recurrence(freebusy)
1.22 self.store.set_freebusy(identity, freebusy)
1.23
1.24 if self.publisher:
1.25 @@ -163,7 +155,6 @@
1.26 if update_freebusy:
1.27 freebusy = self.store.get_freebusy(identity)
1.28 self.remove_from_freebusy(freebusy)
1.29 -
1.30 self.store.set_freebusy(identity, freebusy)
1.31
1.32 if self.publisher: