pyegeria 1.5.1.1.3__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.
@@ -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": {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyegeria
3
- Version: 1.5.1.1.3
3
+ Version: 1.5.1.1.4
4
4
  Summary: A python client for Egeria
5
5
  Home-page: https://github.com/odpi/egeria-python
6
6
  License: Apache 2.0
@@ -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=Ui3LXiI5kyYXpJ35sn2pI4gB5XoAOXEKr6fWsZlCZrI,115642
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.3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
108
- pyegeria-1.5.1.1.3.dist-info/METADATA,sha256=aGv9vPLyMB7LgQKWG4R44euJ36ekbdMOS0m1tXrxB8I,2997
109
- pyegeria-1.5.1.1.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
110
- pyegeria-1.5.1.1.3.dist-info/entry_points.txt,sha256=eQF0CAWVQlHftl85JzL0pWSaQ1eURJ6MeI1I78FvAgQ,4127
111
- pyegeria-1.5.1.1.3.dist-info/RECORD,,
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,,