1.1 --- a/imiptools/client.py Mon Sep 18 22:48:58 2017 +0200
1.2 +++ b/imiptools/client.py Mon Sep 18 23:54:59 2017 +0200
1.3 @@ -425,6 +425,12 @@
1.4 self.sequence = obj and self.obj.get_value("SEQUENCE")
1.5 self.dtstamp = obj and self.obj.get_value("DTSTAMP")
1.6
1.7 + def load_object(self, uid, recurrenceid):
1.8 +
1.9 + "Load the object with the given 'uid' and 'recurrenceid'."
1.10 +
1.11 + self.set_object(self.get_stored_object(uid, recurrenceid))
1.12 +
1.13 def set_identity(self, method):
1.14
1.15 """
1.16 @@ -577,6 +583,10 @@
1.17 obj.set_datetime("DTSTART", p.get_start())
1.18 obj.set_datetime("DTEND", p.get_end())
1.19
1.20 + # Acquire the original recurrence identifier associated with
1.21 + # this period. This may differ where the start of the period has
1.22 + # changed.
1.23 +
1.24 dt, attr = p.get_recurrenceid_item()
1.25 obj["RECURRENCE-ID"] = [(format_datetime(dt), attr)]
1.26
1.27 @@ -883,6 +893,10 @@
1.28
1.29 If 'to_reschedule' is specified, a list of periods to be rescheduled is
1.30 provided.
1.31 +
1.32 + Note that this method, although similar to get_message_parts, processes
1.33 + the core object and the explicitly-specified objects, not the separate
1.34 + recurrence instances that are already stored.
1.35 """
1.36
1.37 # Here, the organiser should be the current user.