MCPcopy Index your code
hub / github.com/O365/python-o365 / __init__

Method __init__

O365/utils/utils.py:630–648  ·  view source on GitHub ↗

Build a query to apply OData filters https://docs.microsoft.com/en-us/graph/query-parameters :param str attribute: attribute to apply the query for :param Protocol protocol: protocol to use for connecting

(self, attribute=None, *, protocol)

Source from the content-addressed store, hash-verified

628 }
629
630 def __init__(self, attribute=None, *, protocol):
631 """ Build a query to apply OData filters
632 https://docs.microsoft.com/en-us/graph/query-parameters
633
634 :param str attribute: attribute to apply the query for
635 :param Protocol protocol: protocol to use for connecting
636 """
637 self.protocol = protocol() if isinstance(protocol, type) else protocol
638 self._attribute = None
639 self._chain = None
640 self.new(attribute)
641 self._negation = False
642 self._filters = [] # store all the filters
643 self._order_by = OrderedDict()
644 self._selects = set()
645 self._expands = set()
646 self._search = None
647 self._open_group_flag = [] # stores if the next attribute must be grouped
648 self._close_group_flag = [] # stores if the last attribute must be closing a group
649
650 def __str__(self):
651 return 'Filter: {}\nOrder: {}\nSelect: {}\nExpand: {}\nSearch: {}'.format(self.get_filters(),

Callers 3

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 1

newMethod · 0.95

Tested by

no test coverage detected