1.1 --- a/imiptools/stores/common.py Mon Oct 16 19:19:01 2017 +0200
1.2 +++ b/imiptools/stores/common.py Mon Oct 16 20:45:25 2017 +0200
1.3 @@ -222,6 +222,24 @@
1.4
1.5 pass
1.6
1.7 + def update_event_from_recurrences(self, user, obj):
1.8 +
1.9 + """
1.10 + Apply separate recurrence information to the event stored by 'user'
1.11 + represented by 'obj'. Recurrences cannot be updated in this way and are
1.12 + not modified by this method.
1.13 + """
1.14 +
1.15 + if obj.get_recurrenceid():
1.16 + return
1.17 +
1.18 + uid = obj.get_uid()
1.19 +
1.20 + if not obj.modifying:
1.21 + obj.set_modifying(self.get_active_recurrences(user, uid))
1.22 + if not obj.cancelling:
1.23 + obj.set_cancelling(self.get_cancelled_recurrences(user, uid))
1.24 +
1.25 # Free/busy period providers, upon extension of the free/busy records.
1.26
1.27 def _get_freebusy_providers(self, user):