Skip to content

Commit 44a020e

Browse files
committed
Update docs
1 parent 243a7cf commit 44a020e

File tree

4 files changed

+25
-14
lines changed

4 files changed

+25
-14
lines changed

docs/exchangelib/ewsdatetime.html

+1-8
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,7 @@ <h1 class="title">Module <code>exchangelib.ewsdatetime</code></h1>
2828
</summary>
2929
<pre><code class="python">import datetime
3030
import logging
31-
32-
try:
33-
import zoneinfo
34-
except ImportError:
35-
from backports import zoneinfo
31+
import zoneinfo
3632

3733
import tzlocal
3834

@@ -311,7 +307,6 @@ <h1 class="title">Module <code>exchangelib.ewsdatetime</code></h1>
311307
try:
312308
return {
313309
cls.__module__.split(&#34;.&#34;)[0]: lambda z: z,
314-
&#34;backports&#34;: cls.from_zoneinfo,
315310
&#34;datetime&#34;: cls.from_datetime,
316311
&#34;dateutil&#34;: cls.from_dateutil,
317312
&#34;pytz&#34;: cls.from_pytz,
@@ -953,7 +948,6 @@ <h3>Methods</h3>
953948
try:
954949
return {
955950
cls.__module__.split(&#34;.&#34;)[0]: lambda z: z,
956-
&#34;backports&#34;: cls.from_zoneinfo,
957951
&#34;datetime&#34;: cls.from_datetime,
958952
&#34;dateutil&#34;: cls.from_dateutil,
959953
&#34;pytz&#34;: cls.from_pytz,
@@ -1085,7 +1079,6 @@ <h3>Static methods</h3>
10851079
try:
10861080
return {
10871081
cls.__module__.split(&#34;.&#34;)[0]: lambda z: z,
1088-
&#34;backports&#34;: cls.from_zoneinfo,
10891082
&#34;datetime&#34;: cls.from_datetime,
10901083
&#34;dateutil&#34;: cls.from_dateutil,
10911084
&#34;pytz&#34;: cls.from_pytz,

docs/exchangelib/index.html

+8-4
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ <h1 class="title">Package <code>exchangelib</code></h1>
6464
from .transport import BASIC, CBA, DIGEST, GSSAPI, NTLM, OAUTH2, SSPI
6565
from .version import Build, Version
6666

67-
__version__ = &#34;5.4.3&#34;
67+
__version__ = &#34;5.5.0&#34;
6868

6969
__all__ = [
7070
&#34;AcceptItem&#34;,
@@ -134,9 +134,9 @@ <h1 class="title">Package <code>exchangelib</code></h1>
134134
&#34;discover&#34;,
135135
]
136136

137-
# Set a default user agent, e.g. &#34;exchangelib/3.1.1 (python-requests/2.22.0)&#34;
138137
import requests.utils
139138

139+
# Set a default user agent, e.g. &#34;exchangelib/5.4.3 (python-requests/2.31.0)&#34;
140140
BaseProtocol.USERAGENT = f&#34;{__name__}/{__version__} ({requests.utils.default_user_agent()})&#34;
141141

142142

@@ -6124,7 +6124,6 @@ <h3>Methods</h3>
61246124
try:
61256125
return {
61266126
cls.__module__.split(&#34;.&#34;)[0]: lambda z: z,
6127-
&#34;backports&#34;: cls.from_zoneinfo,
61286127
&#34;datetime&#34;: cls.from_datetime,
61296128
&#34;dateutil&#34;: cls.from_dateutil,
61306129
&#34;pytz&#34;: cls.from_pytz,
@@ -6256,7 +6255,6 @@ <h3>Static methods</h3>
62566255
try:
62576256
return {
62586257
cls.__module__.split(&#34;.&#34;)[0]: lambda z: z,
6259-
&#34;backports&#34;: cls.from_zoneinfo,
62606258
&#34;datetime&#34;: cls.from_datetime,
62616259
&#34;dateutil&#34;: cls.from_dateutil,
62626260
&#34;pytz&#34;: cls.from_pytz,
@@ -10266,6 +10264,9 @@ <h3>Inherited members</h3>
1026610264
raise ValueError(&#34;&#39;start&#39; must be before &#39;end&#39;&#34;)
1026710265
if self.end &lt; datetime.datetime.now(tz=UTC):
1026810266
raise ValueError(&#34;&#39;end&#39; must be in the future&#34;)
10267+
# Some servers only like UTC timestamps
10268+
self.start = self.start.astimezone(UTC)
10269+
self.end = self.end.astimezone(UTC)
1026910270
if self.state != self.DISABLED and (not self.internal_reply or not self.external_reply):
1027010271
raise ValueError(f&#34;&#39;internal_reply&#39; and &#39;external_reply&#39; must be set when state is not {self.DISABLED!r}&#34;)
1027110272

@@ -10420,6 +10421,9 @@ <h3>Methods</h3>
1042010421
raise ValueError(&#34;&#39;start&#39; must be before &#39;end&#39;&#34;)
1042110422
if self.end &lt; datetime.datetime.now(tz=UTC):
1042210423
raise ValueError(&#34;&#39;end&#39; must be in the future&#34;)
10424+
# Some servers only like UTC timestamps
10425+
self.start = self.start.astimezone(UTC)
10426+
self.end = self.end.astimezone(UTC)
1042310427
if self.state != self.DISABLED and (not self.internal_reply or not self.external_reply):
1042410428
raise ValueError(f&#34;&#39;internal_reply&#39; and &#39;external_reply&#39; must be set when state is not {self.DISABLED!r}&#34;)</code></pre>
1042510429
</details>

docs/exchangelib/settings.html

+10-1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ <h1 class="title">Module <code>exchangelib.settings</code></h1>
6363
raise ValueError(&#34;&#39;start&#39; must be before &#39;end&#39;&#34;)
6464
if self.end &lt; datetime.datetime.now(tz=UTC):
6565
raise ValueError(&#34;&#39;end&#39; must be in the future&#34;)
66+
# Some servers only like UTC timestamps
67+
self.start = self.start.astimezone(UTC)
68+
self.end = self.end.astimezone(UTC)
6669
if self.state != self.DISABLED and (not self.internal_reply or not self.external_reply):
6770
raise ValueError(f&#34;&#39;internal_reply&#39; and &#39;external_reply&#39; must be set when state is not {self.DISABLED!r}&#34;)
6871

@@ -161,6 +164,9 @@ <h2 class="section-title" id="header-classes">Classes</h2>
161164
raise ValueError(&#34;&#39;start&#39; must be before &#39;end&#39;&#34;)
162165
if self.end &lt; datetime.datetime.now(tz=UTC):
163166
raise ValueError(&#34;&#39;end&#39; must be in the future&#34;)
167+
# Some servers only like UTC timestamps
168+
self.start = self.start.astimezone(UTC)
169+
self.end = self.end.astimezone(UTC)
164170
if self.state != self.DISABLED and (not self.internal_reply or not self.external_reply):
165171
raise ValueError(f&#34;&#39;internal_reply&#39; and &#39;external_reply&#39; must be set when state is not {self.DISABLED!r}&#34;)
166172

@@ -315,6 +321,9 @@ <h3>Methods</h3>
315321
raise ValueError(&#34;&#39;start&#39; must be before &#39;end&#39;&#34;)
316322
if self.end &lt; datetime.datetime.now(tz=UTC):
317323
raise ValueError(&#34;&#39;end&#39; must be in the future&#34;)
324+
# Some servers only like UTC timestamps
325+
self.start = self.start.astimezone(UTC)
326+
self.end = self.end.astimezone(UTC)
318327
if self.state != self.DISABLED and (not self.internal_reply or not self.external_reply):
319328
raise ValueError(f&#34;&#39;internal_reply&#39; and &#39;external_reply&#39; must be set when state is not {self.DISABLED!r}&#34;)</code></pre>
320329
</details>
@@ -412,4 +421,4 @@ <h4><code><a title="exchangelib.settings.OofSettings" href="#exchangelib.setting
412421
<p>Generated by <a href="https://pdoc3.github.io/pdoc" title="pdoc: Python API documentation generator"><cite>pdoc</cite> 0.10.0</a>.</p>
413422
</footer>
414423
</body>
415-
</html>
424+
</html>

docs/exchangelib/winzone.html

+6-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ <h1 class="title">Module <code>exchangelib.winzone</code></h1>
3030
<pre><code class="python">&#34;&#34;&#34;A dict to translate from IANA location name to Windows timezone name. Translations taken from CLDR_WINZONE_URL
3131
&#34;&#34;&#34;
3232

33+
# Data taken from https://github.com/unicode-org/cldr/blob/main/common/supplemental/windowsZones.xml
34+
# SPDX-FileCopyrightText: Copyright © 1991-2013 Unicode, Inc.
35+
# SPDX-License-Identifier: Unicode-3.0
36+
# See https://www.unicode.org/license.txt for the license text.
37+
3338
import re
3439

3540
import requests
@@ -293,7 +298,6 @@ <h1 class="title">Module <code>exchangelib.winzone</code></h1>
293298
&#34;Asia/Brunei&#34;: (&#34;Singapore Standard Time&#34;, &#34;BN&#34;),
294299
&#34;Asia/Calcutta&#34;: (&#34;India Standard Time&#34;, &#34;001&#34;),
295300
&#34;Asia/Chita&#34;: (&#34;Transbaikal Standard Time&#34;, &#34;001&#34;),
296-
&#34;Asia/Choibalsan&#34;: (&#34;Ulaanbaatar Standard Time&#34;, &#34;MN&#34;),
297301
&#34;Asia/Colombo&#34;: (&#34;Sri Lanka Standard Time&#34;, &#34;001&#34;),
298302
&#34;Asia/Damascus&#34;: (&#34;Syria Standard Time&#34;, &#34;001&#34;),
299303
&#34;Asia/Dhaka&#34;: (&#34;Bangladesh Standard Time&#34;, &#34;001&#34;),
@@ -545,6 +549,7 @@ <h1 class="title">Module <code>exchangelib.winzone</code></h1>
545549
&#34;Antarctica/South_Pole&#34;: CLDR_TO_MS_TIMEZONE_MAP[&#34;Pacific/Auckland&#34;],
546550
&#34;Antarctica/Troll&#34;: CLDR_TO_MS_TIMEZONE_MAP[&#34;Europe/Oslo&#34;],
547551
&#34;Asia/Ashkhabad&#34;: CLDR_TO_MS_TIMEZONE_MAP[&#34;Asia/Ashgabat&#34;],
552+
&#34;Asia/Choibalsan&#34;: CLDR_TO_MS_TIMEZONE_MAP[&#34;Asia/Ulaanbaatar&#34;],
548553
&#34;Asia/Chongqing&#34;: CLDR_TO_MS_TIMEZONE_MAP[&#34;Asia/Shanghai&#34;],
549554
&#34;Asia/Chungking&#34;: CLDR_TO_MS_TIMEZONE_MAP[&#34;Asia/Shanghai&#34;],
550555
&#34;Asia/Dacca&#34;: CLDR_TO_MS_TIMEZONE_MAP[&#34;Asia/Dhaka&#34;],

0 commit comments

Comments
 (0)