Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
ecederstrand committed Jan 30, 2022
1 parent 33f015f commit d6f8330
Show file tree
Hide file tree
Showing 91 changed files with 17,300 additions and 12,223 deletions.
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@ Change Log

HEAD
----


4.7.2
-----
- Fixed field name to match API: `BaseReplyItem.received_by_representing` to
- `BaseReplyItem.received_representing`
`BaseReplyItem.received_representing`
- Added fields `received_by` and `received_representing` to `MeetingRequest`,
- `MeetingMessage` and `MeetingCancellation`
`MeetingMessage` and `MeetingCancellation`
- Fixed `AppointmentStateField.CANCELLED` enum value.


4.7.1
Expand Down
695 changes: 484 additions & 211 deletions docs/exchangelib/account.html

Large diffs are not rendered by default.

221 changes: 128 additions & 93 deletions docs/exchangelib/attachments.html

Large diffs are not rendered by default.

44 changes: 24 additions & 20 deletions docs/exchangelib/autodiscover/cache.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ <h1 class="title">Module <code>exchangelib.autodiscover.cache</code></h1>
from contextlib import contextmanager
from threading import RLock

from .protocol import AutodiscoverProtocol
from ..configuration import Configuration
from .protocol import AutodiscoverProtocol

log = logging.getLogger(__name__)

Expand All @@ -53,8 +53,8 @@ <h1 class="title">Module <code>exchangelib.autodiscover.cache</code></h1>
user = getpass.getuser()
except KeyError:
# getuser() fails on some systems. Provide a sane default. See issue #448
user = &#39;exchangelib&#39;
return f&#39;exchangelib.{version}.cache.{user}.py{major}{minor}&#39;
user = &#34;exchangelib&#34;
return f&#34;exchangelib.{version}.cache.{user}.py{major}{minor}&#34;


AUTODISCOVER_PERSISTENT_STORAGE = os.path.join(tempfile.gettempdir(), shelve_filename())
Expand All @@ -70,13 +70,13 @@ <h1 class="title">Module <code>exchangelib.autodiscover.cache</code></h1>
# Try to actually use the shelve. Some implementations may allow opening the file but then throw
# errors on access.
try:
_ = shelve_handle[&#39;&#39;]
_ = shelve_handle[&#34;&#34;]
except KeyError:
# The entry doesn&#39;t exist. This is expected.
pass
except Exception as e:
for f in glob.glob(filename + &#39;*&#39;):
log.warning(&#39;Deleting invalid cache file %s (%r)&#39;, f, e)
for f in glob.glob(filename + &#34;*&#34;):
log.warning(&#34;Deleting invalid cache file %s (%r)&#34;, f, e)
os.unlink(f)
shelve_handle = shelve.open(filename)
yield shelve_handle
Expand Down Expand Up @@ -128,9 +128,11 @@ <h1 class="title">Module <code>exchangelib.autodiscover.cache</code></h1>
domain, credentials = key
with shelve_open_with_failover(self._storage_file) as db:
endpoint, auth_type, retry_policy = db[str(domain)] # It&#39;s OK to fail with KeyError here
protocol = AutodiscoverProtocol(config=Configuration(
service_endpoint=endpoint, credentials=credentials, auth_type=auth_type, retry_policy=retry_policy
))
protocol = AutodiscoverProtocol(
config=Configuration(
service_endpoint=endpoint, credentials=credentials, auth_type=auth_type, retry_policy=retry_policy
)
)
self._protocols[key] = protocol
return protocol

Expand Down Expand Up @@ -159,7 +161,7 @@ <h1 class="title">Module <code>exchangelib.autodiscover.cache</code></h1>
def close(self):
# Close all open connections
for (domain, _), protocol in self._protocols.items():
log.debug(&#39;Domain %s: Closing sessions&#39;, domain)
log.debug(&#34;Domain %s: Closing sessions&#34;, domain)
protocol.close()
del protocol
self._protocols.clear()
Expand Down Expand Up @@ -212,8 +214,8 @@ <h2 class="section-title" id="header-functions">Functions</h2>
user = getpass.getuser()
except KeyError:
# getuser() fails on some systems. Provide a sane default. See issue #448
user = &#39;exchangelib&#39;
return f&#39;exchangelib.{version}.cache.{user}.py{major}{minor}&#39;</code></pre>
user = &#34;exchangelib&#34;
return f&#34;exchangelib.{version}.cache.{user}.py{major}{minor}&#34;</code></pre>
</details>
</dd>
<dt id="exchangelib.autodiscover.cache.shelve_open_with_failover"><code class="name flex">
Expand All @@ -235,13 +237,13 @@ <h2 class="section-title" id="header-functions">Functions</h2>
# Try to actually use the shelve. Some implementations may allow opening the file but then throw
# errors on access.
try:
_ = shelve_handle[&#39;&#39;]
_ = shelve_handle[&#34;&#34;]
except KeyError:
# The entry doesn&#39;t exist. This is expected.
pass
except Exception as e:
for f in glob.glob(filename + &#39;*&#39;):
log.warning(&#39;Deleting invalid cache file %s (%r)&#39;, f, e)
for f in glob.glob(filename + &#34;*&#34;):
log.warning(&#34;Deleting invalid cache file %s (%r)&#34;, f, e)
os.unlink(f)
shelve_handle = shelve.open(filename)
yield shelve_handle</code></pre>
Expand Down Expand Up @@ -317,9 +319,11 @@ <h2 class="section-title" id="header-classes">Classes</h2>
domain, credentials = key
with shelve_open_with_failover(self._storage_file) as db:
endpoint, auth_type, retry_policy = db[str(domain)] # It&#39;s OK to fail with KeyError here
protocol = AutodiscoverProtocol(config=Configuration(
service_endpoint=endpoint, credentials=credentials, auth_type=auth_type, retry_policy=retry_policy
))
protocol = AutodiscoverProtocol(
config=Configuration(
service_endpoint=endpoint, credentials=credentials, auth_type=auth_type, retry_policy=retry_policy
)
)
self._protocols[key] = protocol
return protocol

Expand Down Expand Up @@ -348,7 +352,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
def close(self):
# Close all open connections
for (domain, _), protocol in self._protocols.items():
log.debug(&#39;Domain %s: Closing sessions&#39;, domain)
log.debug(&#34;Domain %s: Closing sessions&#34;, domain)
protocol.close()
del protocol
self._protocols.clear()
Expand Down Expand Up @@ -400,7 +404,7 @@ <h3>Methods</h3>
<pre><code class="python">def close(self):
# Close all open connections
for (domain, _), protocol in self._protocols.items():
log.debug(&#39;Domain %s: Closing sessions&#39;, domain)
log.debug(&#34;Domain %s: Closing sessions&#34;, domain)
protocol.close()
del protocol
self._protocols.clear()</code></pre>
Expand Down
Loading

0 comments on commit d6f8330

Please sign in to comment.