Create a collection of attendees :param Event event: event for which to assign the attendees :param attendees: list of attendees to add :type attendees: str or tuple(str, str) or Attendee or list[str] or list[tuple(str,str)] or list[Attendee]
(self, event, attendees=None)
| 670 | """ A Collection of Attendees """ |
| 671 | |
| 672 | def __init__(self, event, attendees=None): |
| 673 | """ Create a collection of attendees |
| 674 | |
| 675 | :param Event event: event for which to assign the attendees |
| 676 | :param attendees: list of attendees to add |
| 677 | :type attendees: str or tuple(str, str) or Attendee or list[str] or |
| 678 | list[tuple(str,str)] or list[Attendee] |
| 679 | """ |
| 680 | super().__init__(protocol=event.protocol, |
| 681 | main_resource=event.main_resource) |
| 682 | self._event = event |
| 683 | self.__attendees = [] |
| 684 | self.untrack = True |
| 685 | if attendees: |
| 686 | self.add(attendees) |
| 687 | self.untrack = False |
| 688 | |
| 689 | def __iter__(self): |
| 690 | return iter(self.__attendees) |