# HG changeset patch # User Paul Boddie # Date 1508341090 -7200 # Node ID 50ec3e1a7b30bb3ccb8a41887f3cb3ad5be68f71 # Parent 822261876a739c35bf9f5adf822e1b47f1f0fba3 Fixed the initialisation of recurrence objects in parent objects. diff -r 822261876a73 -r 50ec3e1a7b30 imiptools/stores/common.py --- a/imiptools/stores/common.py Wed Oct 18 13:24:59 2017 +0200 +++ b/imiptools/stores/common.py Wed Oct 18 17:38:10 2017 +0200 @@ -236,9 +236,16 @@ uid = obj.get_uid() if not obj.modifying: - obj.set_modifying(self.get_active_recurrences(user, uid)) + objects = [] + for recurrenceid in self.get_active_recurrences(user, uid): + objects.append(self.get_event(user, uid, recurrenceid)) + obj.set_modifying(objects) + if not obj.cancelling: - obj.set_cancelling(self.get_cancelled_recurrences(user, uid)) + objects = [] + for recurrenceid in self.get_cancelled_recurrences(user, uid): + objects.append(self.get_event(user, uid, recurrenceid, "cancellations")) + obj.set_cancelling(objects) # Free/busy period providers, upon extension of the free/busy records.