pyegeria 1.5.1.1.2__py3-none-any.whl → 1.5.1.1.4__py3-none-any.whl
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.
- commands/cat/glossary_actions.py +1 -3
- pyegeria/glossary_manager_omvs.py +20 -0
- {pyegeria-1.5.1.1.2.dist-info → pyegeria-1.5.1.1.4.dist-info}/METADATA +1 -1
- {pyegeria-1.5.1.1.2.dist-info → pyegeria-1.5.1.1.4.dist-info}/RECORD +7 -7
- {pyegeria-1.5.1.1.2.dist-info → pyegeria-1.5.1.1.4.dist-info}/LICENSE +0 -0
- {pyegeria-1.5.1.1.2.dist-info → pyegeria-1.5.1.1.4.dist-info}/WHEEL +0 -0
- {pyegeria-1.5.1.1.2.dist-info → pyegeria-1.5.1.1.4.dist-info}/entry_points.txt +0 -0
commands/cat/glossary_actions.py
CHANGED
@@ -223,9 +223,7 @@ def create_term(
|
|
223
223
|
@click.option("--userid", default=EGERIA_USER, help="Egeria user")
|
224
224
|
@click.option("--password", default=EGERIA_USER_PASSWORD, help="Egeria user password")
|
225
225
|
@click.option("--timeout", default=60, help="Number of seconds to wait")
|
226
|
-
def load_terms(
|
227
|
-
glossary_name, file_name, server, url, userid, password, timeout, glossary_guid
|
228
|
-
):
|
226
|
+
def load_terms(glossary_name, file_name, server, url, userid, password, timeout):
|
229
227
|
"""Delete the glossary specified"""
|
230
228
|
m_client = EgeriaTech(server, url, user_id=userid, user_pwd=password)
|
231
229
|
token = m_client.create_egeria_bearer_token()
|
@@ -64,6 +64,11 @@ class GlossaryManager(GlossaryBrowser):
|
|
64
64
|
# Get Valid Values for Enumerations
|
65
65
|
#
|
66
66
|
|
67
|
+
def __validate_term_status__(self, status: str)-> bool
|
68
|
+
"""Return True if the status is a legal glossary term status"""
|
69
|
+
recognized_term_status = {"DRAFT", "ACTIVE", "DEPRACATED", "OBSOLETE", "OTHER"}
|
70
|
+
return status in recognized_term_status
|
71
|
+
|
67
72
|
async def _async_create_glossary(
|
68
73
|
self,
|
69
74
|
display_name: str,
|
@@ -1467,7 +1472,22 @@ class GlossaryManager(GlossaryBrowser):
|
|
1467
1472
|
|
1468
1473
|
# process the row
|
1469
1474
|
if term_name is None:
|
1475
|
+
term_info.append({
|
1476
|
+
{"term_name" : "---"},
|
1477
|
+
{"qualified_name" : "---"},
|
1478
|
+
{"term_guid" : "---"},
|
1479
|
+
{'error': "missing term names - skipping"}
|
1480
|
+
})
|
1481
|
+
continue
|
1482
|
+
if self.__validate_term_status__(status) is False:
|
1483
|
+
term_info.append({
|
1484
|
+
{"term_name": "---"},
|
1485
|
+
{"qualified_name": "---"},
|
1486
|
+
{"term_guid": "---"},
|
1487
|
+
{'error' : "invalid term status"}
|
1488
|
+
})
|
1470
1489
|
continue
|
1490
|
+
|
1471
1491
|
body = {
|
1472
1492
|
"class": "ReferenceableRequestBody",
|
1473
1493
|
"elementProperties": {
|
@@ -6,7 +6,7 @@ commands/cat/get_project_dependencies.py,sha256=B0JaMSUi0hzVgos1sTY2uUPGy1DzKEJM
|
|
6
6
|
commands/cat/get_project_structure.py,sha256=n2GbNd07w1DTo7jTR8b2ewXRyNcat_2BcCBRyDMldwk,5969
|
7
7
|
commands/cat/get_tech_type_elements.py,sha256=-m3Q0BoNqkCtV8h75vMwTcOV-_ymEXmnJcr4Ec7WMAw,6180
|
8
8
|
commands/cat/get_tech_type_template.py,sha256=gMFVcgCIm09GQu1Vsc5ZUVH9XLhItAG1eVGZJrcnHeQ,6174
|
9
|
-
commands/cat/glossary_actions.py,sha256=
|
9
|
+
commands/cat/glossary_actions.py,sha256=tEQX85-hHIalEuKpgybx1V5_NeFDONNrOfrsb9VGlyE,8531
|
10
10
|
commands/cat/list_archives.py,sha256=FEZ2XYnQIWo2PztWqnj6unn0pbblPU0-bMbTyI3csv4,5464
|
11
11
|
commands/cat/list_assets.py,sha256=bNwSaBDz661hfnc2Rn4j4HPHAugKvz0XwN9L1m4FVQk,6529
|
12
12
|
commands/cat/list_cert_types.py,sha256=mbCls_EqC5JKG5rvS4o69k7KgZ6aNXlcqoJ3DtHsTFA,7127
|
@@ -92,7 +92,7 @@ pyegeria/egeria_tech_client.py,sha256=7NfqpJFft5GR4NPRDVDw22L9caHbXB8fhx0TAf6qEo
|
|
92
92
|
pyegeria/feedback_manager_omvs.py,sha256=B66e3ZCaC_dirb0mcb2Nz3PYh2ZKsoMAYNOb3euNiro,152931
|
93
93
|
pyegeria/full_omag_server_config.py,sha256=LBnqUiz1ofBdlKBzECFs_pQbdJwcWigAukWHGJRR2nU,47340
|
94
94
|
pyegeria/glossary_browser_omvs.py,sha256=NcitYaZJqwVODBO5zBtWpXPNUJJ3DKzEbRaOFSAyUlg,93554
|
95
|
-
pyegeria/glossary_manager_omvs.py,sha256
|
95
|
+
pyegeria/glossary_manager_omvs.py,sha256=-J1kLypJkIJBsGYVn-WOyYztPJnrAK902KjUmF32Izc,116554
|
96
96
|
pyegeria/mermaid_utilities.py,sha256=GXiS-subb5nJcDqlThZWX2T8WspU1neFfhf4TxRoMh4,8344
|
97
97
|
pyegeria/my_profile_omvs.py,sha256=DyECbUFEcgokrIbzdMMNljC3bqfqKGXAF2wZEpzvRYs,34666
|
98
98
|
pyegeria/platform_services.py,sha256=CJIOYIFEbcIGwdWlApAQcXxZTsdrhFtpJcm4O3p7dG0,41646
|
@@ -104,8 +104,8 @@ pyegeria/template_manager_omvs.py,sha256=heqbKeum5hPCHap4r1RUZU8YB3QaQlxVNbq4GZi
|
|
104
104
|
pyegeria/utils.py,sha256=1h6bwveadd6GpbnGLTmqPBmBk68QvxdjGTI9RfbrgKY,5415
|
105
105
|
pyegeria/valid_metadata_omvs.py,sha256=tfCGXed5LLt59YA8uZNNtd9UJ-lRZfPU_uZxK31Yux0,65069
|
106
106
|
pyegeria/x_action_author_omvs.py,sha256=xu1IQ0YbhIKi17C5a7Aq9u1Az2czwahNPpX9czmyVxE,6454
|
107
|
-
pyegeria-1.5.1.1.
|
108
|
-
pyegeria-1.5.1.1.
|
109
|
-
pyegeria-1.5.1.1.
|
110
|
-
pyegeria-1.5.1.1.
|
111
|
-
pyegeria-1.5.1.1.
|
107
|
+
pyegeria-1.5.1.1.4.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
108
|
+
pyegeria-1.5.1.1.4.dist-info/METADATA,sha256=_gjfUkhzaROtUfpiqigMG5A9CttQmsNEIEpfDOAoP8c,2997
|
109
|
+
pyegeria-1.5.1.1.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
110
|
+
pyegeria-1.5.1.1.4.dist-info/entry_points.txt,sha256=eQF0CAWVQlHftl85JzL0pWSaQ1eURJ6MeI1I78FvAgQ,4127
|
111
|
+
pyegeria-1.5.1.1.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|