1.1 --- a/imiptools/client.py Sun Jan 21 02:04:24 2018 +0100
1.2 +++ b/imiptools/client.py Sun Jan 21 02:05:35 2018 +0100
1.3 @@ -464,7 +464,26 @@
1.4
1.5 "Load the object with the given 'uid' and 'recurrenceid'."
1.6
1.7 - self.set_object(self.get_stored_object(uid, recurrenceid))
1.8 + # Obtain any parent event or separate recurrence.
1.9 +
1.10 + obj = self.get_stored_object(uid, recurrenceid)
1.11 +
1.12 + # Without a separate recurrence, obtain the parent.
1.13 +
1.14 + if not obj and recurrenceid:
1.15 + obj = self.get_stored_object(uid, None)
1.16 +
1.17 + # With a parent, obtain the period for the recurrence.
1.18 +
1.19 + if obj:
1.20 + period = obj.has_recurrence_period(recurrenceid)
1.21 +
1.22 + # With a period, make a separate recurrence.
1.23 +
1.24 + if period:
1.25 + obj = obj.make_recurrence(period)
1.26 +
1.27 + self.set_object(obj)
1.28 return self.obj
1.29
1.30 def set_identity(self, method):