MCPcopy Create free account
hub / github.com/O365/python-o365 / __init__

Method __init__

O365/calendar.py:672–687  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 2

addMethod · 0.95
__init__Method · 0.45

Tested by

no test coverage detected