diff --git a/docs/exchangelib/fields.html b/docs/exchangelib/fields.html index ac6784f7..4c364301 100644 --- a/docs/exchangelib/fields.html +++ b/docs/exchangelib/fields.html @@ -626,9 +626,10 @@
exchangelib.fields
exchangelib.fields
exchangelib.fields
exchangelib
+def get_connection_with_tls_context(self, request, verify, proxies=None, cert=None)
+
def get_connection_with_tls_context(self, request, verify, proxies=None, cert=None):
+ # pylint: disable=unused-argument
+ # Required for requests >= 2.32.3
+ # See: https://github.com/psf/requests/pull/6710
+ return super().get_connection_with_tls_context(request=request, verify=False, proxies=proxies, cert=cert)
+
@@ -13776,6 +13798,7 @@ Message
NoVerifyHTTPAdapter
-
diff --git a/docs/exchangelib/properties.html b/docs/exchangelib/properties.html
index f8178df5..8752c1f8 100644
--- a/docs/exchangelib/properties.html
+++ b/docs/exchangelib/properties.html
@@ -1885,7 +1885,8 @@
Module exchangelib.properties
ELEMENT_NAME = "AbsoluteDateTransition"
- date = DateTimeBackedDateField(field_uri="DateTime")
+ # Values are returned as naive, and we have no timezone to hook up the values to yet
+ date = DateTimeBackedDateField(field_uri="DateTime", allow_naive=True)
class RecurringDayTransition(BaseTransition):
@@ -2415,7 +2416,8 @@ Classes
ELEMENT_NAME = "AbsoluteDateTransition"
- date = DateTimeBackedDateField(field_uri="DateTime")
+ # Values are returned as naive, and we have no timezone to hook up the values to yet
+ date = DateTimeBackedDateField(field_uri="DateTime", allow_naive=True)
exchangelib.protocol
exchangelib.protocol
+def get_connection_with_tls_context(self, request, verify, proxies=None, cert=None)
+
def get_connection_with_tls_context(self, request, verify, proxies=None, cert=None):
+ # pylint: disable=unused-argument
+ # Required for requests >= 2.32.3
+ # See: https://github.com/psf/requests/pull/6710
+ return super().get_connection_with_tls_context(request=request, verify=False, proxies=proxies, cert=cert)
+
@@ -2107,6 +2136,7 @@ Methods
tz_definition = list(self.get_timezones(timezones=[start.tzinfo], return_full_timezone_data=True))[0]
return GetUserAvailability(self).call(
+ tzinfo=start.tzinfo,
mailbox_data=[
MailboxData(
email=account.primary_smtp_address if isinstance(account, Account) else account,
@@ -2356,6 +2386,7 @@ Methods
tz_definition = list(self.get_timezones(timezones=[start.tzinfo], return_full_timezone_data=True))[0]
return GetUserAvailability(self).call(
+ tzinfo=start.tzinfo,
mailbox_data=[
MailboxData(
email=account.primary_smtp_address if isinstance(account, Account) else account,
@@ -2858,6 +2889,7 @@ NoVerifyHTTPAdapter
-
diff --git a/docs/exchangelib/services/get_user_availability.html b/docs/exchangelib/services/get_user_availability.html
index 9e966f85..bc86d0c0 100644
--- a/docs/exchangelib/services/get_user_availability.html
+++ b/docs/exchangelib/services/get_user_availability.html
@@ -26,7 +26,9 @@
Module exchangelib.services.get_user_availability
Expand source code
-from ..properties import FreeBusyView
+from collections import namedtuple
+
+from ..properties import FreeBusyView
from ..util import MNS, create_element, set_xml_value
from .common import EWSService
@@ -39,9 +41,14 @@ Module exchangelib.services.get_user_availability
SERVICE_NAME = "GetUserAvailability"
- def call(self, mailbox_data, timezone, free_busy_view_options):
+ def __init__(self, *args, **kwargs):
+ super().__init__(*args, **kwargs)
+ self.tzinfo = None
+
+ def call(self, tzinfo, mailbox_data, timezone, free_busy_view_options):
# TODO: Also supports SuggestionsViewOptions, see
# https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/suggestionsviewoptions
+ self.tzinfo = tzinfo
return self._elems_to_objs(
self._chunked_get_elements(
self.get_payload,
@@ -51,8 +58,13 @@ Module exchangelib.services.get_user_availability
)
)
+ @property
+ def _timezone(self):
+ return self.tzinfo
+
def _elem_to_obj(self, elem):
- return FreeBusyView.from_xml(elem=elem, account=None)
+ fake_account = namedtuple("Account", ["default_timezone"])(default_timezone=self.tzinfo)
+ return FreeBusyView.from_xml(elem=elem, account=fake_account)
def get_payload(self, mailbox_data, timezone, free_busy_view_options):
payload = create_element(f"m:{self.SERVICE_NAME}Request")
@@ -94,7 +106,7 @@ Classes
class GetUserAvailability
-(protocol, chunk_size=None, timeout=None)
+(*args, **kwargs)
-
Get detailed availability information for a list of users.
@@ -112,9 +124,14 @@
Classes
SERVICE_NAME = "GetUserAvailability"
- def call(self, mailbox_data, timezone, free_busy_view_options):
+ def __init__(self, *args, **kwargs):
+ super().__init__(*args, **kwargs)
+ self.tzinfo = None
+
+ def call(self, tzinfo, mailbox_data, timezone, free_busy_view_options):
# TODO: Also supports SuggestionsViewOptions, see
# https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/suggestionsviewoptions
+ self.tzinfo = tzinfo
return self._elems_to_objs(
self._chunked_get_elements(
self.get_payload,
@@ -124,8 +141,13 @@ Classes
)
)
+ @property
+ def _timezone(self):
+ return self.tzinfo
+
def _elem_to_obj(self, elem):
- return FreeBusyView.from_xml(elem=elem, account=None)
+ fake_account = namedtuple("Account", ["default_timezone"])(default_timezone=self.tzinfo)
+ return FreeBusyView.from_xml(elem=elem, account=fake_account)
def get_payload(self, mailbox_data, timezone, free_busy_view_options):
payload = create_element(f"m:{self.SERVICE_NAME}Request")
@@ -170,7 +192,7 @@ Class variables
Methods
-def call(self, mailbox_data, timezone, free_busy_view_options)
+def call(self, tzinfo, mailbox_data, timezone, free_busy_view_options)
-
@@ -178,9 +200,10 @@
Methods
Expand source code
-def call(self, mailbox_data, timezone, free_busy_view_options):
+def call(self, tzinfo, mailbox_data, timezone, free_busy_view_options):
# TODO: Also supports SuggestionsViewOptions, see
# https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/suggestionsviewoptions
+ self.tzinfo = tzinfo
return self._elems_to_objs(
self._chunked_get_elements(
self.get_payload,
diff --git a/docs/exchangelib/services/index.html b/docs/exchangelib/services/index.html
index bddc49e5..5a80372b 100644
--- a/docs/exchangelib/services/index.html
+++ b/docs/exchangelib/services/index.html
@@ -5315,7 +5315,7 @@ Inherited members
class GetUserAvailability
-(protocol, chunk_size=None, timeout=None)
+(*args, **kwargs)
-
Get detailed availability information for a list of users.
@@ -5333,9 +5333,14 @@
Inherited members
SERVICE_NAME = "GetUserAvailability"
- def call(self, mailbox_data, timezone, free_busy_view_options):
+ def __init__(self, *args, **kwargs):
+ super().__init__(*args, **kwargs)
+ self.tzinfo = None
+
+ def call(self, tzinfo, mailbox_data, timezone, free_busy_view_options):
# TODO: Also supports SuggestionsViewOptions, see
# https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/suggestionsviewoptions
+ self.tzinfo = tzinfo
return self._elems_to_objs(
self._chunked_get_elements(
self.get_payload,
@@ -5345,8 +5350,13 @@ Inherited members
)
)
+ @property
+ def _timezone(self):
+ return self.tzinfo
+
def _elem_to_obj(self, elem):
- return FreeBusyView.from_xml(elem=elem, account=None)
+ fake_account = namedtuple("Account", ["default_timezone"])(default_timezone=self.tzinfo)
+ return FreeBusyView.from_xml(elem=elem, account=fake_account)
def get_payload(self, mailbox_data, timezone, free_busy_view_options):
payload = create_element(f"m:{self.SERVICE_NAME}Request")
@@ -5391,7 +5401,7 @@ Class variables
Methods
-def call(self, mailbox_data, timezone, free_busy_view_options)
+def call(self, tzinfo, mailbox_data, timezone, free_busy_view_options)
-
@@ -5399,9 +5409,10 @@
Methods
Expand source code
-def call(self, mailbox_data, timezone, free_busy_view_options):
+def call(self, tzinfo, mailbox_data, timezone, free_busy_view_options):
# TODO: Also supports SuggestionsViewOptions, see
# https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/suggestionsviewoptions
+ self.tzinfo = tzinfo
return self._elems_to_objs(
self._chunked_get_elements(
self.get_payload,