1.1 --- a/imiptools/handlers/resource.py Wed Sep 13 00:29:48 2017 +0200
1.2 +++ b/imiptools/handlers/resource.py Wed Sep 13 01:20:29 2017 +0200
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Handlers for a resource.
1.6
1.7 -Copyright (C) 2014, 2015, 2016 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2014, 2015, 2016, 2017 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU General Public License as published by the Free Software
1.12 @@ -104,9 +104,6 @@
1.13 method = "REPLY"
1.14 attendee_attr = self.update_participation(scheduled)
1.15
1.16 - self.update_event_in_freebusy(for_organiser=False)
1.17 - self.remove_event_from_freebusy_offers()
1.18 -
1.19 # Set the complete event or an additional occurrence.
1.20
1.21 event = self.obj.to_node()
1.22 @@ -121,6 +118,12 @@
1.23 else:
1.24 self.store.remove_cancellation(self.user, self.uid, self.recurrenceid)
1.25
1.26 + # Update free/busy details only after recurrences have been
1.27 + # removed, where appropriate.
1.28 +
1.29 + self.update_event_in_freebusy(for_organiser=False)
1.30 + self.remove_event_from_freebusy_offers()
1.31 +
1.32 if scheduled == "ACCEPTED":
1.33 self.confirm_scheduling()
1.34