1.1 --- a/imipweb/client.py Sun Jul 26 02:01:24 2015 +0200
1.2 +++ b/imipweb/client.py Sun Jul 26 23:43:26 2015 +0200
1.3 @@ -56,22 +56,20 @@
1.4 else:
1.5 recipients = [get_address(organiser)]
1.6
1.7 + # Since the outgoing handler updates this user's free/busy details,
1.8 + # the stored details will probably not have the updated details at
1.9 + # this point, so we update our copy for serialisation as the bundled
1.10 + # free/busy object.
1.11 +
1.12 + freebusy = self.store.get_freebusy(self.user)
1.13 + self.update_freebusy(freebusy, self.user, from_organiser)
1.14 +
1.15 # Bundle free/busy information if appropriate.
1.16
1.17 - part = self.get_freebusy_part()
1.18 + part = self.get_freebusy_part(freebusy)
1.19 if part:
1.20 parts.append(part)
1.21
1.22 - # Since the outgoing handler updates this user's free/busy details,
1.23 - # the stored details will probably not have the updated details at
1.24 - # this point, so we update our copy for serialisation as the bundled
1.25 - # free/busy object.
1.26 -
1.27 - freebusy = self.store.get_freebusy(self.user)
1.28 -
1.29 - self.update_freebusy(freebusy,
1.30 - self.obj.get_periods(self.get_tzid(), self.get_window_end()))
1.31 -
1.32 # Explicitly specify the outgoing BCC recipient since we are sending as
1.33 # the generic calendar user.
1.34