1.1 --- a/imiptools/client.py Fri Mar 23 15:46:51 2018 +0100
1.2 +++ b/imiptools/client.py Thu Mar 29 17:30:13 2018 +0200
1.3 @@ -1047,6 +1047,24 @@
1.4 parts = [self.object_to_part("CANCEL", self.obj)]
1.5 return self.make_message_for_self(parts)
1.6
1.7 + def make_freebusy_message(self):
1.8 +
1.9 + "Prepare a free/busy request for the main period."
1.10 +
1.11 + user_attr = {}
1.12 + self.update_sender_attr(user_attr)
1.13 +
1.14 + attributes = self.obj.get_items("ATTENDEE")
1.15 + period = self.obj.get_main_period()
1.16 +
1.17 + recipients = self.get_recipients()
1.18 +
1.19 + # NOTE: Should choose a different UID to any event.
1.20 +
1.21 + fb = make_freebusy(None, self.uid, self.user, user_attr, attributes, period)
1.22 + parts = [self.to_part("REQUEST", [fb])]
1.23 + return self.make_message(parts, recipients)
1.24 +
1.25 # Action methods.
1.26
1.27 def send_declined_counter_to_attendee(self, attendee):