kodexa 7.0.9584881808__py3-none-any.whl → 7.0.9596368033__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 +7 -3
- {kodexa-7.0.9584881808.dist-info → kodexa-7.0.9596368033.dist-info}/METADATA +1 -1
- {kodexa-7.0.9584881808.dist-info → kodexa-7.0.9596368033.dist-info}/RECORD +5 -5
- {kodexa-7.0.9584881808.dist-info → kodexa-7.0.9596368033.dist-info}/LICENSE +0 -0
- {kodexa-7.0.9584881808.dist-info → kodexa-7.0.9596368033.dist-info}/WHEEL +0 -0
kodexa/model/model.py
CHANGED
@@ -559,9 +559,13 @@ class ContentNode(object):
|
|
559
559
|
>>> new_page.add_feature('pagination','pageNum',1)
|
560
560
|
"""
|
561
561
|
if self.has_feature(feature_type, name):
|
562
|
-
|
563
|
-
|
564
|
-
|
562
|
+
existing_feature = self.get_feature(feature_type, name)
|
563
|
+
if isinstance(existing_feature.value, list):
|
564
|
+
existing_feature.value.append(value)
|
565
|
+
else:
|
566
|
+
existing_feature.value = [existing_feature.value, value]
|
567
|
+
self.update_feature(existing_feature)
|
568
|
+
return existing_feature
|
565
569
|
|
566
570
|
# Make sure that we treat the value as list all the time
|
567
571
|
new_feature = ContentFeature(
|
@@ -8,7 +8,7 @@ kodexa/model/base.py,sha256=CaZK8nMhT1LdCpt4aLhebJGcorjq9qRID1FjnXnP14M,521
|
|
8
8
|
kodexa/model/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
9
9
|
kodexa/model/entities/product.py,sha256=ZDpHuBE_9FJ-klnkyBvTfPwYOqBkM1wraZMtHqNA8FQ,3526
|
10
10
|
kodexa/model/entities/product_subscription.py,sha256=UcmWR-qgLfdV7VCtJNwzgkanoS8nBSL6ngVuxQUK1M8,3810
|
11
|
-
kodexa/model/model.py,sha256=
|
11
|
+
kodexa/model/model.py,sha256=BURhrOEVTTlKkDJho5CEFeLR9Dyq157mztlvbAdL1d4,115769
|
12
12
|
kodexa/model/objects.py,sha256=tj6U5bcSOnKD4Pe3B-zhbM49X2BvM38MVRTxi38Up94,174414
|
13
13
|
kodexa/model/persistence.py,sha256=sx5FwTSsWMdAZpAs0-6PqyULHkQyNQClApUKJZ-ly8M,62032
|
14
14
|
kodexa/pipeline/__init__.py,sha256=sA7f5D6qkdMrpp2xTIeefnrUBI6xxEEWostvxfX_1Cs,236
|
@@ -38,7 +38,7 @@ kodexa/testing/test_components.py,sha256=g5lP-GY0nTHuH5cIEw45vIejEeBaWkPKQGHL36j
|
|
38
38
|
kodexa/testing/test_utils.py,sha256=DrLCkHxdb6AbZ-X3WmTMbQmnVIm55VEBL8MjtUK9POs,14021
|
39
39
|
kodexa/training/__init__.py,sha256=xs2L62YpRkIRfslQwtQZ5Yxjhm7sLzX2TrVX6EuBnZQ,52
|
40
40
|
kodexa/training/train_utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
41
|
-
kodexa-7.0.
|
42
|
-
kodexa-7.0.
|
43
|
-
kodexa-7.0.
|
44
|
-
kodexa-7.0.
|
41
|
+
kodexa-7.0.9596368033.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
42
|
+
kodexa-7.0.9596368033.dist-info/METADATA,sha256=xCUzRuaWqC6t3DwFe41_Hk_-fhpeKATHyZnTqRTtfoA,3486
|
43
|
+
kodexa-7.0.9596368033.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
44
|
+
kodexa-7.0.9596368033.dist-info/RECORD,,
|
File without changes
|
File without changes
|