# HG changeset patch # User Paul Boddie # Date 1521816331 -3600 # Node ID 97d22cc423b36e7368f561edf12aed447c294323 # Parent 23bc5a6fdfdc3540cf5c57ade4b8eed7789468b6 Added a convenience method, prepare_cancel_publish_message. diff -r 23bc5a6fdfdc -r 97d22cc423b3 imiptools/editing.py --- a/imiptools/editing.py Fri Mar 23 15:44:51 2018 +0100 +++ b/imiptools/editing.py Fri Mar 23 15:45:31 2018 +0100 @@ -515,6 +515,12 @@ to_cancel = self.state.get("attendees_to_cancel") return self.make_cancel_message(to_cancel) + def prepare_cancel_publish_message(self): + + "Prepare the cancel message for the current user." + + return self.make_cancel_message_for_self() + def prepare_publish_message(self): "Prepare the publishing message for the updated event." @@ -678,6 +684,8 @@ to_remove.append(index - removed) removed += 1 + # NOTE: This will not affect the main period. + for index in to_remove: del periods[index]