1.1 --- a/imiptools/handlers/person_outgoing.py Sun Apr 05 18:25:27 2015 +0200
1.2 +++ b/imiptools/handlers/person_outgoing.py Sun Apr 05 18:55:24 2015 +0200
1.3 @@ -30,12 +30,10 @@
1.4 def set_identity(self, from_organiser=True):
1.5
1.6 """
1.7 - Set the current user for the current object. Return attributes for the
1.8 - user if the
1.9 + Set the current user for the current object.
1.10 """
1.11
1.12 self.user, attr = uri_item(self.obj.get_item(from_organiser and "ORGANIZER" or "ATTENDEE"))
1.13 - return attr
1.14
1.15 def _record(self, from_organiser=True, update_freebusy=False):
1.16
1.17 @@ -45,7 +43,7 @@
1.18 free/busy information if 'update_freebusy' is set to a true value.
1.19 """
1.20
1.21 - attr = self.set_identity(from_organiser)
1.22 + self.set_identity(from_organiser)
1.23
1.24 # Check for event using UID.
1.25
1.26 @@ -97,7 +95,10 @@
1.27
1.28 periods = obj.get_periods_for_freebusy(self.get_tzid(), self.get_window_end())
1.29
1.30 - self.update_freebusy_for_participant(freebusy, periods, attr, from_organiser)
1.31 + # Obtain the attendance attributes for this user, if available.
1.32 +
1.33 + attendees = uri_dict(self.obj.get_value_map("ATTENDEE"))
1.34 + self.update_freebusy_for_participant(freebusy, periods, attendees.get(self.user), from_organiser)
1.35
1.36 # Remove either original recurrence or additional recurrence
1.37 # details depending on whether an additional recurrence or a