1.1 --- a/imiptools/editing.py Fri Oct 27 22:27:12 2017 +0200
1.2 +++ b/imiptools/editing.py Fri Oct 27 23:29:28 2017 +0200
1.3 @@ -535,6 +535,18 @@
1.4 return self.make_response_message(recipients, update_parent,
1.5 all_rescheduled, to_reschedule)
1.6
1.7 + # Access methods.
1.8 +
1.9 + def find_attendee(self, attendee):
1.10 +
1.11 + "Return the index of 'attendee' or None if not present."
1.12 +
1.13 + attendees = self.state.get("attendees")
1.14 + try:
1.15 + return attendees.keys().index(attendee)
1.16 + except ValueError:
1.17 + return None
1.18 +
1.19 # Modification methods.
1.20
1.21 def add_attendee(self, uri=None):