oarepo-runtime 1.5.113__py3-none-any.whl → 1.5.114__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.
- oarepo_runtime/records/relations/base.py +4 -2
- {oarepo_runtime-1.5.113.dist-info → oarepo_runtime-1.5.114.dist-info}/METADATA +1 -1
- {oarepo_runtime-1.5.113.dist-info → oarepo_runtime-1.5.114.dist-info}/RECORD +7 -7
- {oarepo_runtime-1.5.113.dist-info → oarepo_runtime-1.5.114.dist-info}/LICENSE +0 -0
- {oarepo_runtime-1.5.113.dist-info → oarepo_runtime-1.5.114.dist-info}/WHEEL +0 -0
- {oarepo_runtime-1.5.113.dist-info → oarepo_runtime-1.5.114.dist-info}/entry_points.txt +0 -0
- {oarepo_runtime-1.5.113.dist-info → oarepo_runtime-1.5.114.dist-info}/top_level.txt +0 -0
@@ -173,6 +173,8 @@ class RelationResult:
|
|
173
173
|
|
174
174
|
def resolve(self, id_):
|
175
175
|
raise NotImplementedError("Please implement this method in your subclass")
|
176
|
+
|
177
|
+
|
176
178
|
class UnstrictRelationResult(RelationResult):
|
177
179
|
|
178
180
|
def _resolve_lookup_result(self, relation):
|
@@ -180,6 +182,8 @@ class UnstrictRelationResult(RelationResult):
|
|
180
182
|
raise InvalidRelationValue(
|
181
183
|
f"Value at path {relation.path} must be dict, found {relation.value}"
|
182
184
|
)
|
185
|
+
if "id" not in relation.value:
|
186
|
+
return relation.value
|
183
187
|
relation_id = self._lookup_id(relation)
|
184
188
|
resolved_object = self.resolve(relation_id, relation.value)
|
185
189
|
if not resolved_object:
|
@@ -199,8 +203,6 @@ class UnstrictRelationResult(RelationResult):
|
|
199
203
|
return data
|
200
204
|
|
201
205
|
|
202
|
-
|
203
|
-
|
204
206
|
class Relation:
|
205
207
|
result_cls = RelationResult
|
206
208
|
|
@@ -63,7 +63,7 @@ oarepo_runtime/records/mappings/rdm_parent_mapping.json,sha256=9yRjlGs8-TZZiKN9M
|
|
63
63
|
oarepo_runtime/records/owners/__init__.py,sha256=R4hudCBqLRRzgCnkEjXIL7hSp068z-s6YOwYSkWyuaw,93
|
64
64
|
oarepo_runtime/records/owners/registry.py,sha256=fYgBuW5nBKn6pyz2OBgfNlynk64_yhQ9J7FzPk8QU1U,795
|
65
65
|
oarepo_runtime/records/relations/__init__.py,sha256=Zn7JeQrd5f1doWl5IpbNSpO8m8hm1m-oljAW-7WHn-k,477
|
66
|
-
oarepo_runtime/records/relations/base.py,sha256=
|
66
|
+
oarepo_runtime/records/relations/base.py,sha256=H_8OPO35WQlbvnDi1LKltmCgoBn1HF40b03xveH09p0,9998
|
67
67
|
oarepo_runtime/records/relations/internal.py,sha256=OTp8iJqyl80sWDk0Q0AK42l6UsxZDABspVU_GwWza9o,1556
|
68
68
|
oarepo_runtime/records/relations/lookup.py,sha256=wi3jPfOedazOmhOMrgu50PUETc1jfSdpmjK0wvOFsEM,848
|
69
69
|
oarepo_runtime/records/relations/pid_relation.py,sha256=eojw5uIo5zXmJGge_bj6Wj2njCRY5S4o4B_h_HFyaDY,3901
|
@@ -147,9 +147,9 @@ tests/marshmallow_to_json/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJW
|
|
147
147
|
tests/marshmallow_to_json/test_datacite_ui_schema.py,sha256=82iLj8nW45lZOUewpWbLX3mpSkpa9lxo-vK-Qtv_1bU,48552
|
148
148
|
tests/marshmallow_to_json/test_simple_schema.py,sha256=izZN9p0v6kovtSZ6AdxBYmK_c6ZOti2_z_wPT_zXIr0,1500
|
149
149
|
tests/pkg_data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
150
|
-
oarepo_runtime-1.5.
|
151
|
-
oarepo_runtime-1.5.
|
152
|
-
oarepo_runtime-1.5.
|
153
|
-
oarepo_runtime-1.5.
|
154
|
-
oarepo_runtime-1.5.
|
155
|
-
oarepo_runtime-1.5.
|
150
|
+
oarepo_runtime-1.5.114.dist-info/LICENSE,sha256=h2uWz0OaB3EN-J1ImdGJZzc7yvfQjvHVYdUhQ-H7ypY,1064
|
151
|
+
oarepo_runtime-1.5.114.dist-info/METADATA,sha256=ek8EiFhceraeV4Zk0IhGkvfAJy6AVu4yObiC1B2SpkE,4721
|
152
|
+
oarepo_runtime-1.5.114.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
153
|
+
oarepo_runtime-1.5.114.dist-info/entry_points.txt,sha256=k7O5LZUOGsVeSpB7ulU0txBUNp1CVQG7Q7TJIVTPbzU,491
|
154
|
+
oarepo_runtime-1.5.114.dist-info/top_level.txt,sha256=bHhlkT1_RQC4IkfTQCqA3iN4KCB6cSFQlsXpQMSP-bE,21
|
155
|
+
oarepo_runtime-1.5.114.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|