pyPreservica 2.9.2__tar.gz → 2.9.3__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.
- {pypreservica-2.9.2 → pypreservica-2.9.3}/PKG-INFO +1 -1
- {pypreservica-2.9.2 → pypreservica-2.9.3}/pyPreservica/__init__.py +1 -1
- {pypreservica-2.9.2 → pypreservica-2.9.3}/pyPreservica/mdformsAPI.py +3 -3
- {pypreservica-2.9.2 → pypreservica-2.9.3}/pyPreservica.egg-info/PKG-INFO +1 -1
- {pypreservica-2.9.2 → pypreservica-2.9.3}/setup.py +1 -1
- {pypreservica-2.9.2 → pypreservica-2.9.3}/LICENSE.txt +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/README.md +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/pyPreservica/adminAPI.py +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/pyPreservica/authorityAPI.py +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/pyPreservica/common.py +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/pyPreservica/contentAPI.py +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/pyPreservica/entityAPI.py +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/pyPreservica/monitorAPI.py +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/pyPreservica/opex.py +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/pyPreservica/parAPI.py +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/pyPreservica/retentionAPI.py +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/pyPreservica/uploadAPI.py +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/pyPreservica/webHooksAPI.py +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/pyPreservica/workflowAPI.py +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/pyPreservica.egg-info/SOURCES.txt +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/pyPreservica.egg-info/dependency_links.txt +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/pyPreservica.egg-info/requires.txt +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/pyPreservica.egg-info/top_level.txt +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/setup.cfg +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/tests/test_authority_records.py +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/tests/test_bitstream.py +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/tests/test_children.py +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/tests/test_content_api.py +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/tests/test_crawl_fs.py +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/tests/test_delete.py +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/tests/test_download.py +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/tests/test_entity.py +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/tests/test_export_opex.py +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/tests/test_groups.py +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/tests/test_identifier.py +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/tests/test_ingest.py +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/tests/test_integrity_check.py +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/tests/test_metadata.py +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/tests/test_par.py +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/tests/test_replace.py +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/tests/test_retention.py +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/tests/test_schema.py +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/tests/test_security.py +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/tests/test_thumbnail.py +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/tests/test_upload.py +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/tests/test_users.py +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/tests/test_workflow.py +0 -0
- {pypreservica-2.9.2 → pypreservica-2.9.3}/tests/test_xml_metadata.py +0 -0
|
@@ -23,6 +23,6 @@ from .mdformsAPI import MetadataGroupsAPI, Group, GroupField, GroupFieldType
|
|
|
23
23
|
__author__ = "James Carr (drjamescarr@gmail.com)"
|
|
24
24
|
|
|
25
25
|
# Version of the pyPreservica package
|
|
26
|
-
__version__ = "2.9.
|
|
26
|
+
__version__ = "2.9.3"
|
|
27
27
|
|
|
28
28
|
__license__ = "Apache License Version 2.0"
|
|
@@ -421,7 +421,7 @@ class MetadataGroupsAPI(AuthenticatedAPI):
|
|
|
421
421
|
logger.error(exception)
|
|
422
422
|
raise exception
|
|
423
423
|
|
|
424
|
-
def forms(self, schema_uri: str
|
|
424
|
+
def forms(self, schema_uri: Union[str, None] = None) -> dict:
|
|
425
425
|
"""
|
|
426
426
|
Return all the metadata Forms in the tenancy as a list of JSON dict objects
|
|
427
427
|
|
|
@@ -441,7 +441,7 @@ class MetadataGroupsAPI(AuthenticatedAPI):
|
|
|
441
441
|
with self.session.get(url, headers=headers, params=params) as request:
|
|
442
442
|
if request.status_code == requests.codes.unauthorized:
|
|
443
443
|
self.token = self.__token__()
|
|
444
|
-
return self.
|
|
444
|
+
return self.forms()
|
|
445
445
|
elif request.status_code == requests.codes.ok:
|
|
446
446
|
return json.loads(str(request.content.decode('utf-8')))['metadataForms']
|
|
447
447
|
else:
|
|
@@ -467,7 +467,7 @@ class MetadataGroupsAPI(AuthenticatedAPI):
|
|
|
467
467
|
with self.session.get(url, headers=headers) as request:
|
|
468
468
|
if request.status_code == requests.codes.unauthorized:
|
|
469
469
|
self.token = self.__token__()
|
|
470
|
-
return self.
|
|
470
|
+
return self.form(form_id)
|
|
471
471
|
elif request.status_code == requests.codes.ok:
|
|
472
472
|
return json.loads(str(request.content.decode('utf-8')))
|
|
473
473
|
else:
|
|
@@ -21,7 +21,7 @@ if sys.argv[-1] == 'publish':
|
|
|
21
21
|
# This call to setup() does all the work
|
|
22
22
|
setup(
|
|
23
23
|
name=PKG,
|
|
24
|
-
version="2.9.
|
|
24
|
+
version="2.9.3",
|
|
25
25
|
description="Python library for the Preservica API",
|
|
26
26
|
long_description=README,
|
|
27
27
|
long_description_content_type="text/markdown",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|