1.1 --- a/imiptools/handlers/person.py Tue Apr 19 17:57:28 2016 +0200
1.2 +++ b/imiptools/handlers/person.py Tue Apr 19 18:17:06 2016 +0200
1.3 @@ -205,15 +205,23 @@
1.4
1.5 "As organiser, update attendance from valid attendees."
1.6
1.7 - if not self.ensure_occurrence():
1.8 - return False
1.9 + # Occurrences that are still part of a parent object are separated,
1.10 + # attendance information transferred, and the free/busy details updated.
1.11 +
1.12 + if self.is_newly_separated_occurrence():
1.13 + if self.make_separate_occurrence(for_organiser=True):
1.14 +
1.15 + # Update free/busy details for the event.
1.16 +
1.17 + self.update_event_in_freebusy(for_organiser=True)
1.18 + return True
1.19
1.20 # Merge the attendance for the received object.
1.21
1.22 - if self.merge_attendance(attendees):
1.23 - self.update_freebusy_from_attendees(attendees)
1.24 + elif self.merge_attendance(attendees):
1.25 + return self.update_freebusy_from_attendees(attendees)
1.26
1.27 - return True
1.28 + return False
1.29
1.30 def _refresh(self, organiser, attendees):
1.31