kodexa 7.0.7439177000__py3-none-any.whl → 7.0.7462586458__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/model.py +13 -4
- kodexa/model/objects.py +1 -0
- {kodexa-7.0.7439177000.dist-info → kodexa-7.0.7462586458.dist-info}/METADATA +1 -1
- {kodexa-7.0.7439177000.dist-info → kodexa-7.0.7462586458.dist-info}/RECORD +6 -6
- {kodexa-7.0.7439177000.dist-info → kodexa-7.0.7462586458.dist-info}/LICENSE +0 -0
- {kodexa-7.0.7439177000.dist-info → kodexa-7.0.7462586458.dist-info}/WHEEL +0 -0
kodexa/model/model.py
CHANGED
@@ -10,12 +10,12 @@ import uuid
|
|
10
10
|
from enum import Enum
|
11
11
|
from typing import Any, List, Optional
|
12
12
|
|
13
|
+
import deepdiff
|
13
14
|
import msgpack
|
14
15
|
from addict import Dict
|
15
16
|
from pydantic import BaseModel, ConfigDict
|
16
17
|
|
17
18
|
from kodexa.model.objects import ContentObject, FeatureSet
|
18
|
-
import deepdiff
|
19
19
|
|
20
20
|
|
21
21
|
class Ref:
|
@@ -2428,11 +2428,20 @@ class Document(object):
|
|
2428
2428
|
)
|
2429
2429
|
self._persistence_layer.initialize()
|
2430
2430
|
|
2431
|
-
def
|
2431
|
+
def remove_tags_by_owner(self, owner_uri: str):
|
2432
|
+
|
2433
|
+
for tag in self.get_all_tags():
|
2434
|
+
for tag_instance in self.get_tag_instances(tag):
|
2435
|
+
tag_meta: dict = tag_instance.get_data()
|
2436
|
+
if 'owner_uri' in tag_meta and tag_meta['owner_uri'] == owner_uri:
|
2437
|
+
for node in tag_instance.nodes:
|
2438
|
+
node.remove_tag(tag)
|
2439
|
+
|
2440
|
+
def add_tag_instance(self, tag_to_apply:str, node_list: List[ContentNode]):
|
2432
2441
|
"""
|
2433
2442
|
This will create a group of a tag with indexes
|
2434
|
-
:param
|
2435
|
-
:param
|
2443
|
+
:param tag_to_apply: name of the tag
|
2444
|
+
:param node_list: contains the list of index of a node
|
2436
2445
|
:return:
|
2437
2446
|
"""
|
2438
2447
|
# For each node in the list create/update a feature
|
kodexa/model/objects.py
CHANGED
@@ -4169,6 +4169,7 @@ class Guidance(BaseModel):
|
|
4169
4169
|
active: Optional[bool] = None
|
4170
4170
|
applicable_tags: Optional[List[str]] = Field(None, alias="applicableTags")
|
4171
4171
|
priority: Optional[int] = 1
|
4172
|
+
user_instructions: Optional[str] = Field(None, alias="userInstructions")
|
4172
4173
|
|
4173
4174
|
|
4174
4175
|
class GuidanceSet(ExtensionPackProvided):
|
@@ -5,8 +5,8 @@ kodexa/connectors/__init__.py,sha256=WF6G_MUeU32TlKSUKkpNoNX7dq8iBPliFMep4E8BmZc
|
|
5
5
|
kodexa/connectors/connectors.py,sha256=FpUZDkSyHld2b9eYRuVOWzaFtuGoaRuPXXicJB7THbc,10413
|
6
6
|
kodexa/model/__init__.py,sha256=rtLXYJBxB-rnukhslN9rlqoB3--1H3253HyHGbD_Gc8,796
|
7
7
|
kodexa/model/base.py,sha256=CaZK8nMhT1LdCpt4aLhebJGcorjq9qRID1FjnXnP14M,521
|
8
|
-
kodexa/model/model.py,sha256=
|
9
|
-
kodexa/model/objects.py,sha256=
|
8
|
+
kodexa/model/model.py,sha256=X0d15hI7qMTR3Bz7Y40lb0xTCOl0trNlBQln2jpCBpU,114550
|
9
|
+
kodexa/model/objects.py,sha256=KpCrNo1zDktbZm8LOU8nharDTEF_cybaMGvEcOdphJY,168880
|
10
10
|
kodexa/model/persistence.py,sha256=TajtXfHp7dL85R5ui9A2h6rLMecDUr6OYZHVgm8CVJw,57360
|
11
11
|
kodexa/pipeline/__init__.py,sha256=sA7f5D6qkdMrpp2xTIeefnrUBI6xxEEWostvxfX_1Cs,236
|
12
12
|
kodexa/pipeline/pipeline.py,sha256=cIRFOoJkguIYgNzx6FYrODdBpcY25CM_SULsqSsHeXE,24323
|
@@ -34,7 +34,7 @@ kodexa/testing/test_components.py,sha256=4BnzCCOA5v__82mB1TIBPHfNIGJbkZz9PiTZiNK
|
|
34
34
|
kodexa/testing/test_utils.py,sha256=IWLKBvMHATzrsoO9PQFGcwoGcuZykhAS3QRddfzb_XE,14043
|
35
35
|
kodexa/training/__init__.py,sha256=xs2L62YpRkIRfslQwtQZ5Yxjhm7sLzX2TrVX6EuBnZQ,52
|
36
36
|
kodexa/training/train_utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
37
|
-
kodexa-7.0.
|
38
|
-
kodexa-7.0.
|
39
|
-
kodexa-7.0.
|
40
|
-
kodexa-7.0.
|
37
|
+
kodexa-7.0.7462586458.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
38
|
+
kodexa-7.0.7462586458.dist-info/METADATA,sha256=tXbDsRgXo6sirO_2KG53IVK_SsrNBLhjupsQzSBvUvo,4067
|
39
|
+
kodexa-7.0.7462586458.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
40
|
+
kodexa-7.0.7462586458.dist-info/RECORD,,
|
File without changes
|
File without changes
|