girder-client 5.0.24.dev4__tar.gz → 5.0.24.dev8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {girder_client-5.0.24.dev4 → girder_client-5.0.24.dev8}/PKG-INFO +1 -1
- {girder_client-5.0.24.dev4 → girder_client-5.0.24.dev8}/girder_client/__init__.py +8 -1
- {girder_client-5.0.24.dev4 → girder_client-5.0.24.dev8}/girder_client.egg-info/PKG-INFO +1 -1
- girder_client-5.0.24.dev8/girder_client.egg-info/scm_version.json +8 -0
- girder_client-5.0.24.dev4/girder_client.egg-info/scm_version.json +0 -8
- {girder_client-5.0.24.dev4 → girder_client-5.0.24.dev8}/README.rst +0 -0
- {girder_client-5.0.24.dev4 → girder_client-5.0.24.dev8}/girder_client/_jsonemitter.py +0 -0
- {girder_client-5.0.24.dev4 → girder_client-5.0.24.dev8}/girder_client/cli.py +0 -0
- {girder_client-5.0.24.dev4 → girder_client-5.0.24.dev8}/girder_client.egg-info/SOURCES.txt +0 -0
- {girder_client-5.0.24.dev4 → girder_client-5.0.24.dev8}/girder_client.egg-info/dependency_links.txt +0 -0
- {girder_client-5.0.24.dev4 → girder_client-5.0.24.dev8}/girder_client.egg-info/entry_points.txt +0 -0
- {girder_client-5.0.24.dev4 → girder_client-5.0.24.dev8}/girder_client.egg-info/not-zip-safe +0 -0
- {girder_client-5.0.24.dev4 → girder_client-5.0.24.dev8}/girder_client.egg-info/requires.txt +0 -0
- {girder_client-5.0.24.dev4 → girder_client-5.0.24.dev8}/girder_client.egg-info/scm_file_list.json +0 -0
- {girder_client-5.0.24.dev4 → girder_client-5.0.24.dev8}/girder_client.egg-info/top_level.txt +0 -0
- {girder_client-5.0.24.dev4 → girder_client-5.0.24.dev8}/pyproject.toml +0 -0
- {girder_client-5.0.24.dev4 → girder_client-5.0.24.dev8}/setup.cfg +0 -0
- {girder_client-5.0.24.dev4 → girder_client-5.0.24.dev8}/setup.py +0 -0
|
@@ -171,7 +171,8 @@ class GirderClient:
|
|
|
171
171
|
the default value is 'http'; if you pass 'https' you likely want
|
|
172
172
|
to pass 443 for the port
|
|
173
173
|
:param cacheSettings: Settings to use with the diskcache library, or
|
|
174
|
-
None to disable caching.
|
|
174
|
+
None to disable caching. The cache directory is made accessible
|
|
175
|
+
only by the current user.
|
|
175
176
|
:param progressReporterCls: the progress reporter class to instantiate. This class
|
|
176
177
|
is expected to be a context manager with a constructor accepting `label` and
|
|
177
178
|
`length` keyword arguments, an `update` method accepting a `chunkSize` argument and
|
|
@@ -212,6 +213,12 @@ class GirderClient:
|
|
|
212
213
|
if cacheSettings is None:
|
|
213
214
|
self.cache = None
|
|
214
215
|
else:
|
|
216
|
+
cacheSettings = dict(cacheSettings)
|
|
217
|
+
if cacheSettings.get('directory') is not None:
|
|
218
|
+
directory = os.path.abspath(os.path.expanduser(cacheSettings['directory']))
|
|
219
|
+
os.makedirs(directory, mode=0o700, exist_ok=True)
|
|
220
|
+
os.chmod(directory, 0o700)
|
|
221
|
+
cacheSettings['directory'] = directory
|
|
215
222
|
self.cache = diskcache.Cache(**cacheSettings)
|
|
216
223
|
|
|
217
224
|
if progressReporterCls is None:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{girder_client-5.0.24.dev4 → girder_client-5.0.24.dev8}/girder_client.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{girder_client-5.0.24.dev4 → girder_client-5.0.24.dev8}/girder_client.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{girder_client-5.0.24.dev4 → girder_client-5.0.24.dev8}/girder_client.egg-info/scm_file_list.json
RENAMED
|
File without changes
|
{girder_client-5.0.24.dev4 → girder_client-5.0.24.dev8}/girder_client.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|