def event_updated(self, event, changes, **kwargs): if not changes.viewkeys() & {'title', 'description', 'location_data'}: return for user in get_participating_users(event): self.logger.info('Event data change: updating %s in %r', user, event) self._record_change(event, user, OutlookAction.update)
def event_deleted(self, event, **kwargs): for user in get_participating_users(event): self.logger.info('Event deletion: removing %s in %r', user, event) self._record_change(event, user, OutlookAction.remove)
def event_times_changed(self, sender, obj, **kwargs): event = obj for user in get_participating_users(event): self.logger.info('Event time change: updating %s in %r', user, event) self._record_change(event, user, OutlookAction.update)