From 44a020e6ea42aa1a3babf902755b82f4e7412682 Mon Sep 17 00:00:00 2001 From: Erik Cederstrand Date: Mon, 28 Oct 2024 13:17:09 +0100 Subject: [PATCH] Update docs --- docs/exchangelib/ewsdatetime.html | 9 +-------- docs/exchangelib/index.html | 12 ++++++++---- docs/exchangelib/settings.html | 11 ++++++++++- docs/exchangelib/winzone.html | 7 ++++++- 4 files changed, 25 insertions(+), 14 deletions(-) diff --git a/docs/exchangelib/ewsdatetime.html b/docs/exchangelib/ewsdatetime.html index 403cfa61..e1528e59 100644 --- a/docs/exchangelib/ewsdatetime.html +++ b/docs/exchangelib/ewsdatetime.html @@ -28,11 +28,7 @@

Module exchangelib.ewsdatetime

import datetime
 import logging
-
-try:
-    import zoneinfo
-except ImportError:
-    from backports import zoneinfo
+import zoneinfo
 
 import tzlocal
 
@@ -311,7 +307,6 @@ 

Module exchangelib.ewsdatetime

try: return { cls.__module__.split(".")[0]: lambda z: z, - "backports": cls.from_zoneinfo, "datetime": cls.from_datetime, "dateutil": cls.from_dateutil, "pytz": cls.from_pytz, @@ -953,7 +948,6 @@

Methods

try: return { cls.__module__.split(".")[0]: lambda z: z, - "backports": cls.from_zoneinfo, "datetime": cls.from_datetime, "dateutil": cls.from_dateutil, "pytz": cls.from_pytz, @@ -1085,7 +1079,6 @@

Static methods

try: return { cls.__module__.split(".")[0]: lambda z: z, - "backports": cls.from_zoneinfo, "datetime": cls.from_datetime, "dateutil": cls.from_dateutil, "pytz": cls.from_pytz, diff --git a/docs/exchangelib/index.html b/docs/exchangelib/index.html index 3e727087..3b14064a 100644 --- a/docs/exchangelib/index.html +++ b/docs/exchangelib/index.html @@ -64,7 +64,7 @@

Package exchangelib

from .transport import BASIC, CBA, DIGEST, GSSAPI, NTLM, OAUTH2, SSPI from .version import Build, Version -__version__ = "5.4.3" +__version__ = "5.5.0" __all__ = [ "AcceptItem", @@ -134,9 +134,9 @@

Package exchangelib

"discover", ] -# Set a default user agent, e.g. "exchangelib/3.1.1 (python-requests/2.22.0)" import requests.utils +# Set a default user agent, e.g. "exchangelib/5.4.3 (python-requests/2.31.0)" BaseProtocol.USERAGENT = f"{__name__}/{__version__} ({requests.utils.default_user_agent()})" @@ -6124,7 +6124,6 @@

Methods

try: return { cls.__module__.split(".")[0]: lambda z: z, - "backports": cls.from_zoneinfo, "datetime": cls.from_datetime, "dateutil": cls.from_dateutil, "pytz": cls.from_pytz, @@ -6256,7 +6255,6 @@

Static methods

try: return { cls.__module__.split(".")[0]: lambda z: z, - "backports": cls.from_zoneinfo, "datetime": cls.from_datetime, "dateutil": cls.from_dateutil, "pytz": cls.from_pytz, @@ -10266,6 +10264,9 @@

Inherited members

raise ValueError("'start' must be before 'end'") if self.end < datetime.datetime.now(tz=UTC): raise ValueError("'end' must be in the future") + # Some servers only like UTC timestamps + self.start = self.start.astimezone(UTC) + self.end = self.end.astimezone(UTC) if self.state != self.DISABLED and (not self.internal_reply or not self.external_reply): raise ValueError(f"'internal_reply' and 'external_reply' must be set when state is not {self.DISABLED!r}") @@ -10420,6 +10421,9 @@

Methods

raise ValueError("'start' must be before 'end'") if self.end < datetime.datetime.now(tz=UTC): raise ValueError("'end' must be in the future") + # Some servers only like UTC timestamps + self.start = self.start.astimezone(UTC) + self.end = self.end.astimezone(UTC) if self.state != self.DISABLED and (not self.internal_reply or not self.external_reply): raise ValueError(f"'internal_reply' and 'external_reply' must be set when state is not {self.DISABLED!r}")
diff --git a/docs/exchangelib/settings.html b/docs/exchangelib/settings.html index d4bf01e8..653e1091 100644 --- a/docs/exchangelib/settings.html +++ b/docs/exchangelib/settings.html @@ -63,6 +63,9 @@

Module exchangelib.settings

raise ValueError("'start' must be before 'end'") if self.end < datetime.datetime.now(tz=UTC): raise ValueError("'end' must be in the future") + # Some servers only like UTC timestamps + self.start = self.start.astimezone(UTC) + self.end = self.end.astimezone(UTC) if self.state != self.DISABLED and (not self.internal_reply or not self.external_reply): raise ValueError(f"'internal_reply' and 'external_reply' must be set when state is not {self.DISABLED!r}") @@ -161,6 +164,9 @@

Classes

raise ValueError("'start' must be before 'end'") if self.end < datetime.datetime.now(tz=UTC): raise ValueError("'end' must be in the future") + # Some servers only like UTC timestamps + self.start = self.start.astimezone(UTC) + self.end = self.end.astimezone(UTC) if self.state != self.DISABLED and (not self.internal_reply or not self.external_reply): raise ValueError(f"'internal_reply' and 'external_reply' must be set when state is not {self.DISABLED!r}") @@ -315,6 +321,9 @@

Methods

raise ValueError("'start' must be before 'end'") if self.end < datetime.datetime.now(tz=UTC): raise ValueError("'end' must be in the future") + # Some servers only like UTC timestamps + self.start = self.start.astimezone(UTC) + self.end = self.end.astimezone(UTC) if self.state != self.DISABLED and (not self.internal_reply or not self.external_reply): raise ValueError(f"'internal_reply' and 'external_reply' must be set when state is not {self.DISABLED!r}") @@ -412,4 +421,4 @@

pdoc 0.10.0.

- \ No newline at end of file + diff --git a/docs/exchangelib/winzone.html b/docs/exchangelib/winzone.html index 2bea7901..a4959a64 100644 --- a/docs/exchangelib/winzone.html +++ b/docs/exchangelib/winzone.html @@ -30,6 +30,11 @@

Module exchangelib.winzone

"""A dict to translate from IANA location name to Windows timezone name. Translations taken from CLDR_WINZONE_URL
 """
 
+# Data taken from https://github.com/unicode-org/cldr/blob/main/common/supplemental/windowsZones.xml
+# SPDX-FileCopyrightText: Copyright © 1991-2013 Unicode, Inc.
+# SPDX-License-Identifier: Unicode-3.0
+# See https://www.unicode.org/license.txt for the license text.
+
 import re
 
 import requests
@@ -293,7 +298,6 @@ 

Module exchangelib.winzone

"Asia/Brunei": ("Singapore Standard Time", "BN"), "Asia/Calcutta": ("India Standard Time", "001"), "Asia/Chita": ("Transbaikal Standard Time", "001"), - "Asia/Choibalsan": ("Ulaanbaatar Standard Time", "MN"), "Asia/Colombo": ("Sri Lanka Standard Time", "001"), "Asia/Damascus": ("Syria Standard Time", "001"), "Asia/Dhaka": ("Bangladesh Standard Time", "001"), @@ -545,6 +549,7 @@

Module exchangelib.winzone

"Antarctica/South_Pole": CLDR_TO_MS_TIMEZONE_MAP["Pacific/Auckland"], "Antarctica/Troll": CLDR_TO_MS_TIMEZONE_MAP["Europe/Oslo"], "Asia/Ashkhabad": CLDR_TO_MS_TIMEZONE_MAP["Asia/Ashgabat"], + "Asia/Choibalsan": CLDR_TO_MS_TIMEZONE_MAP["Asia/Ulaanbaatar"], "Asia/Chongqing": CLDR_TO_MS_TIMEZONE_MAP["Asia/Shanghai"], "Asia/Chungking": CLDR_TO_MS_TIMEZONE_MAP["Asia/Shanghai"], "Asia/Dacca": CLDR_TO_MS_TIMEZONE_MAP["Asia/Dhaka"],