kodexa 7.0.10561796916__py3-none-any.whl → 7.0.10580879516__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.
kodexa/model/objects.py CHANGED
@@ -5451,6 +5451,11 @@ class Taxonomy(ExtensionPackProvided):
5451
5451
  alias="totalTaxons",
5452
5452
  description="The total number of taxons in the taxonomy",
5453
5453
  )
5454
+ external_data_taxonomy_refs: Optional[list[str]] = Field(
5455
+ None,
5456
+ alias="externalDataTaxonomyRefs",
5457
+ description="A list of references to an external data taxonomy",
5458
+ )
5454
5459
 
5455
5460
  def update_paths(self):
5456
5461
  for taxon in self.taxons:
@@ -4,7 +4,7 @@ import pathlib
4
4
  import sqlite3
5
5
  import tempfile
6
6
  import uuid
7
- from typing import List
7
+ from typing import List, Optional
8
8
 
9
9
  import msgpack
10
10
 
@@ -1230,7 +1230,7 @@ class SimpleObjectCache(object):
1230
1230
  self.next_id = 1
1231
1231
  self.dirty_objs = set()
1232
1232
 
1233
- def get_obj(self, obj_id):
1233
+ def get_obj(self, obj_id) -> Optional[ContentNode]:
1234
1234
  """
1235
1235
  Get the object with the given ID.
1236
1236
 
@@ -1245,7 +1245,7 @@ class SimpleObjectCache(object):
1245
1245
 
1246
1246
  return None
1247
1247
 
1248
- def add_obj(self, obj):
1248
+ def add_obj(self, obj: ContentNode):
1249
1249
  """
1250
1250
  Add an object to the cache.
1251
1251
 
@@ -1270,7 +1270,7 @@ class SimpleObjectCache(object):
1270
1270
  if obj.uuid in self.dirty_objs:
1271
1271
  self.dirty_objs.remove(obj.uuid)
1272
1272
 
1273
- def get_dirty_objs(self):
1273
+ def get_dirty_objs(self) -> list[ContentNode]:
1274
1274
  """
1275
1275
  Get all dirty objects in the cache.
1276
1276
 
@@ -1395,7 +1395,10 @@ class PersistenceManager(object):
1395
1395
  ContentNode: The node with the given uuid.
1396
1396
  """
1397
1397
  if self.node_cache.get_obj(uuid) is None:
1398
- self.node_cache.add_obj(self._underlying_persistence.get_node(uuid))
1398
+ node = self._underlying_persistence.get_node(uuid)
1399
+ if node:
1400
+ self.node_cache.add_obj(node)
1401
+ return node
1399
1402
 
1400
1403
  return self.node_cache.get_obj(uuid) # return the cached version
1401
1404
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kodexa
3
- Version: 7.0.10561796916
3
+ Version: 7.0.10580879516
4
4
  Summary: Python SDK for the Kodexa Platform
5
5
  Author: Austin Redenbaugh
6
6
  Author-email: austin@kodexa.com
@@ -12,8 +12,8 @@ kodexa/model/entities/check_response.py,sha256=eqBHxO6G2OAziL3p9bHGI-oiPkAG82H6C
12
12
  kodexa/model/entities/product.py,sha256=ZDpHuBE_9FJ-klnkyBvTfPwYOqBkM1wraZMtHqNA8FQ,3526
13
13
  kodexa/model/entities/product_subscription.py,sha256=UcmWR-qgLfdV7VCtJNwzgkanoS8nBSL6ngVuxQUK1M8,3810
14
14
  kodexa/model/model.py,sha256=9_n6iOD7TLBf0rqRNY0K8HSpf-dGejuq-OqI1cBBr20,117896
15
- kodexa/model/objects.py,sha256=C4ERIaB0Avuf2FHIvEsyyO_HAjvDVXW_CB6-EEEhUtA,176751
16
- kodexa/model/persistence.py,sha256=XJ4mi1dG1E1cOwbNjj9E9-_6kXsqKDjxVEJDAfI4rjo,66052
15
+ kodexa/model/objects.py,sha256=uPlNW4AVCriKRpgaFU-_2lLG87kUNmb2HVVvhe4Y1n4,176948
16
+ kodexa/model/persistence.py,sha256=w4WGS_qH1iowH8-ZMawZBZ2RFW3bNvmFy5fgSwr6VmQ,66198
17
17
  kodexa/pipeline/__init__.py,sha256=sA7f5D6qkdMrpp2xTIeefnrUBI6xxEEWostvxfX_1Cs,236
18
18
  kodexa/pipeline/pipeline.py,sha256=ZYpJAWcwV4YRK589DUhU0vXGQlkNSj4J2TsGbYqTLjo,25221
19
19
  kodexa/platform/__init__.py,sha256=1O3oiWMg292NPL_NacKDnK1T3_R6cMorrPRue_9e-O4,216
@@ -42,7 +42,7 @@ kodexa/testing/test_utils.py,sha256=DrLCkHxdb6AbZ-X3WmTMbQmnVIm55VEBL8MjtUK9POs,
42
42
  kodexa/training/__init__.py,sha256=xs2L62YpRkIRfslQwtQZ5Yxjhm7sLzX2TrVX6EuBnZQ,52
43
43
  kodexa/training/train_utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
44
44
  kodexa/utils/__init__.py,sha256=Pnim1o9_db5YEnNvDTxpM7HG-qTlL6n8JwFwOafU9wo,5928
45
- kodexa-7.0.10561796916.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
46
- kodexa-7.0.10561796916.dist-info/METADATA,sha256=GsW77QX0xrTU-nbCTEF8JmAuWrveOpdM0e0HVW8aOMc,3533
47
- kodexa-7.0.10561796916.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
48
- kodexa-7.0.10561796916.dist-info/RECORD,,
45
+ kodexa-7.0.10580879516.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
46
+ kodexa-7.0.10580879516.dist-info/METADATA,sha256=q24xbKPBB-RPZ6HdTMVTe1j3c6XWCV5cYt3tmzunjhQ,3533
47
+ kodexa-7.0.10580879516.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
48
+ kodexa-7.0.10580879516.dist-info/RECORD,,