kodexa 7.0.7492554595__py3-none-any.whl → 7.0.7494051160__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 CHANGED
@@ -553,11 +553,9 @@ class ContentNode(object):
553
553
  >>> new_page.add_feature('pagination','pageNum',1)
554
554
  """
555
555
  if self.has_feature(feature_type, name):
556
- feature = self.get_feature(feature_type, name)
557
- feature.single = False # always setting to false if we already have a feature of this type/name
558
- feature.value.append(value)
559
- self.update_feature(feature)
560
- return feature
556
+ raise Exception(
557
+ f"Feature {feature_type}:{name} already exists on this node, use set_feature to update"
558
+ )
561
559
 
562
560
  # Make sure that we treat the value as list all the time
563
561
  new_feature = ContentFeature(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kodexa
3
- Version: 7.0.7492554595
3
+ Version: 7.0.7494051160
4
4
  Summary: Python SDK for the Kodexa Platform
5
5
  Author: Austin Redenbaugh
6
6
  Author-email: austin@kodexa.com
@@ -5,7 +5,7 @@ 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=0BzqMoSaNZKtPEJizUhRi5W3igbnVoVkpBi5U2PiwDQ,114549
8
+ kodexa/model/model.py,sha256=uTWwmWezeAGcy3GEYAF_R55GBG3HPAB8Q9xsXJ4L7CM,114420
9
9
  kodexa/model/objects.py,sha256=pcx48-I7MGjx6BlvGQQK0rBytXeBVqs-C361moQMWjA,169671
10
10
  kodexa/model/persistence.py,sha256=P-Q9TAD44o-GRJEMaxNf0-JqNY8I-5MuLLmb823s3Us,57388
11
11
  kodexa/pipeline/__init__.py,sha256=sA7f5D6qkdMrpp2xTIeefnrUBI6xxEEWostvxfX_1Cs,236
@@ -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.7492554595.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
38
- kodexa-7.0.7492554595.dist-info/METADATA,sha256=GKHpoIuykgCyuMWya0sFVrKsveTbSPfZ2VJePaDyJi4,4067
39
- kodexa-7.0.7492554595.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
40
- kodexa-7.0.7492554595.dist-info/RECORD,,
37
+ kodexa-7.0.7494051160.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
38
+ kodexa-7.0.7494051160.dist-info/METADATA,sha256=cfPLPq-Xtneh-gcEE7GKNJ2zXiHHAqulrPp5BRzM4xQ,4067
39
+ kodexa-7.0.7494051160.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
40
+ kodexa-7.0.7494051160.dist-info/RECORD,,