1.1 --- a/imiptools/handlers/resource.py Mon Sep 14 19:56:01 2015 +0200
1.2 +++ b/imiptools/handlers/resource.py Mon Sep 14 19:56:57 2015 +0200
1.3 @@ -135,13 +135,12 @@
1.4 # break
1.5
1.6 # Update the participation of the resource in the object.
1.7 -
1.8 - attendee_attr = self.update_participation(self.obj,
1.9 - scheduled and "ACCEPTED" or "DECLINED")
1.10 -
1.11 # Update free/busy information.
1.12
1.13 if method == "REPLY":
1.14 + attendee_attr = self.update_participation(self.obj,
1.15 + scheduled and "ACCEPTED" or "DECLINED")
1.16 +
1.17 self.update_event_in_freebusy(for_organiser=False)
1.18 self.remove_event_from_freebusy_offers()
1.19
1.20 @@ -165,6 +164,7 @@
1.21 # Make a version of the object with just this attendee, update the
1.22 # DTSTAMP in the response, and return the object for sending.
1.23
1.24 + self.update_sender(attendee_attr)
1.25 self.obj["ATTENDEE"] = [(self.user, attendee_attr)]
1.26 self.update_dtstamp()
1.27 self.add_result(method, map(get_address, self.obj.get_values("ORGANIZER")), to_part(method, [self.obj.to_node()]))