1.1 --- a/imiptools/handlers/common.py Tue Sep 01 15:59:42 2015 +0200
1.2 +++ b/imiptools/handlers/common.py Tue Sep 01 19:43:40 2015 +0200
1.3 @@ -89,6 +89,12 @@
1.4 if self.publisher and self.is_sharing():
1.5 self.publisher.set_freebusy(self.user, freebusy)
1.6
1.7 + # Update free/busy provider information if the event may recur
1.8 + # indefinitely.
1.9 +
1.10 + if self.possibly_recurring_indefinitely():
1.11 + self.store.append_freebusy_provider(self.user, self.obj)
1.12 +
1.13 return True
1.14
1.15 def remove_event_from_freebusy(self):
1.16 @@ -103,4 +109,10 @@
1.17 if self.publisher and self.is_sharing():
1.18 self.publisher.set_freebusy(self.user, freebusy)
1.19
1.20 + # Update free/busy provider information if the event may recur
1.21 + # indefinitely.
1.22 +
1.23 + if self.possibly_recurring_indefinitely():
1.24 + self.store.remove_freebusy_provider(self.user, self.obj)
1.25 +
1.26 # vim: tabstop=4 expandtab shiftwidth=4