oarepo-runtime 1.6.2__py3-none-any.whl → 1.7.0__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/services/schema/rdm.py +13 -0
- oarepo_runtime/services/schema/rdm_ui.py +13 -0
- {oarepo_runtime-1.6.2.dist-info → oarepo_runtime-1.7.0.dist-info}/METADATA +1 -1
- {oarepo_runtime-1.6.2.dist-info → oarepo_runtime-1.7.0.dist-info}/RECORD +8 -8
- {oarepo_runtime-1.6.2.dist-info → oarepo_runtime-1.7.0.dist-info}/WHEEL +0 -0
- {oarepo_runtime-1.6.2.dist-info → oarepo_runtime-1.7.0.dist-info}/entry_points.txt +0 -0
- {oarepo_runtime-1.6.2.dist-info → oarepo_runtime-1.7.0.dist-info}/licenses/LICENSE +0 -0
- {oarepo_runtime-1.6.2.dist-info → oarepo_runtime-1.7.0.dist-info}/top_level.txt +0 -0
@@ -15,6 +15,8 @@ from marshmallow_utils.fields import (
|
|
15
15
|
from marshmallow_utils.fields.nestedattr import NestedAttribute
|
16
16
|
from marshmallow_utils.schemas.identifier import IdentifierSchema
|
17
17
|
|
18
|
+
from .i18n import MultilingualField
|
19
|
+
|
18
20
|
|
19
21
|
class RDMRecordMixin(ma.Schema):
|
20
22
|
versions = NestedAttribute(VersionsSchema, dump_only=True)
|
@@ -60,3 +62,14 @@ class RelatedRecordIdentifierField(IdentifierSet):
|
|
60
62
|
*args,
|
61
63
|
**kwargs
|
62
64
|
)
|
65
|
+
|
66
|
+
|
67
|
+
class RDMSubjectSchema(ma.Schema):
|
68
|
+
"""Subject ui schema."""
|
69
|
+
|
70
|
+
class Meta:
|
71
|
+
unknown = ma.RAISE
|
72
|
+
|
73
|
+
_id = ma.fields.String(data_key="id")
|
74
|
+
|
75
|
+
subject = MultilingualField()
|
@@ -4,6 +4,8 @@ from oarepo_vocabularies.services.ui_schema import VocabularyI18nStrUIField
|
|
4
4
|
|
5
5
|
from oarepo_runtime.services.schema.marshmallow import DictOnlySchema
|
6
6
|
|
7
|
+
from .i18n_ui import MultilingualUIField
|
8
|
+
|
7
9
|
|
8
10
|
class RDMIdentifierWithSchemaUISchema(ma.Schema):
|
9
11
|
scheme = ma.fields.String(
|
@@ -141,3 +143,14 @@ class RDMCreatorsUISchema(ma.Schema):
|
|
141
143
|
)
|
142
144
|
|
143
145
|
person_or_org = ma.fields.Nested(RDMPersonOrOrganizationUISchema())
|
146
|
+
|
147
|
+
|
148
|
+
class RDMSubjectUISchema(ma.Schema):
|
149
|
+
"""Subject ui schema."""
|
150
|
+
|
151
|
+
class Meta:
|
152
|
+
unknown = ma.RAISE
|
153
|
+
|
154
|
+
_id = ma.fields.String(data_key="id")
|
155
|
+
|
156
|
+
subject = MultilingualUIField()
|
@@ -136,8 +136,8 @@ oarepo_runtime/services/schema/marshmallow.py,sha256=iAMMH5MlYs59qetXAHOROvERNSc
|
|
136
136
|
oarepo_runtime/services/schema/marshmallow_to_json_schema.py,sha256=VYLnVWHOoaxWCD_gqJO8-8u1SbaPEFBjDZ5HGgGr0Ow,2027
|
137
137
|
oarepo_runtime/services/schema/oneofschema.py,sha256=GnWH4Or_G5M0NgSmCoqMI6PBrJg5AC9RHrcB5QDKRq0,6661
|
138
138
|
oarepo_runtime/services/schema/polymorphic.py,sha256=bAbUoTIeDBiJPYPhpLEKKZekEdkHlpqkmNxk1hN3PDw,564
|
139
|
-
oarepo_runtime/services/schema/rdm.py,sha256=
|
140
|
-
oarepo_runtime/services/schema/rdm_ui.py,sha256=
|
139
|
+
oarepo_runtime/services/schema/rdm.py,sha256=rtyO46CREmBJMQxgm0UenIbELSY6OAj35VbxFflIH_g,2272
|
140
|
+
oarepo_runtime/services/schema/rdm_ui.py,sha256=ffjl20tvRcuX3FNINOhGJWX84aTNEzJOqoKZum1s03s,3778
|
141
141
|
oarepo_runtime/services/schema/ui.py,sha256=ff2AfK-G0fArlVHHKsDagPhu9NkMj6DPcVK4NycEO8c,8216
|
142
142
|
oarepo_runtime/services/schema/validation.py,sha256=aRfeR-2D1XXYqI3_U5FHoFvJrYjZlpM8nB35-M_u3Qs,2300
|
143
143
|
oarepo_runtime/translations/default_translations.py,sha256=060GBlA1ghWxfeumo6NqxCCZDb-6OezOuF6pr-_GEOQ,104
|
@@ -149,13 +149,13 @@ oarepo_runtime/translations/en/LC_MESSAGES/messages.po,sha256=7-5S3iINOSFSI5gVdR
|
|
149
149
|
oarepo_runtime/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
150
150
|
oarepo_runtime/utils/functools.py,sha256=gKS9YZtlIYcDvdNA9cmYO00yjiXBYV1jg8VpcRUyQyg,1324
|
151
151
|
oarepo_runtime/utils/path.py,sha256=V1NVyk3m12_YLbj7QHYvUpE1wScO78bYsX1LOLeXDkI,3108
|
152
|
-
oarepo_runtime-1.
|
152
|
+
oarepo_runtime-1.7.0.dist-info/licenses/LICENSE,sha256=h2uWz0OaB3EN-J1ImdGJZzc7yvfQjvHVYdUhQ-H7ypY,1064
|
153
153
|
tests/marshmallow_to_json/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
154
154
|
tests/marshmallow_to_json/test_datacite_ui_schema.py,sha256=82iLj8nW45lZOUewpWbLX3mpSkpa9lxo-vK-Qtv_1bU,48552
|
155
155
|
tests/marshmallow_to_json/test_simple_schema.py,sha256=izZN9p0v6kovtSZ6AdxBYmK_c6ZOti2_z_wPT_zXIr0,1500
|
156
156
|
tests/pkg_data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
157
|
-
oarepo_runtime-1.
|
158
|
-
oarepo_runtime-1.
|
159
|
-
oarepo_runtime-1.
|
160
|
-
oarepo_runtime-1.
|
161
|
-
oarepo_runtime-1.
|
157
|
+
oarepo_runtime-1.7.0.dist-info/METADATA,sha256=NUTpowtktIjmv9Wws8RahuI0nXprG3FGS_O7IKOjI80,4788
|
158
|
+
oarepo_runtime-1.7.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
159
|
+
oarepo_runtime-1.7.0.dist-info/entry_points.txt,sha256=k7O5LZUOGsVeSpB7ulU0txBUNp1CVQG7Q7TJIVTPbzU,491
|
160
|
+
oarepo_runtime-1.7.0.dist-info/top_level.txt,sha256=bHhlkT1_RQC4IkfTQCqA3iN4KCB6cSFQlsXpQMSP-bE,21
|
161
|
+
oarepo_runtime-1.7.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|