oarepo-runtime 1.5.114__py3-none-any.whl → 1.5.116__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/resources/responses.py +9 -0
- oarepo_runtime/services/schema/rdm_ui.py +3 -0
- {oarepo_runtime-1.5.114.dist-info → oarepo_runtime-1.5.116.dist-info}/METADATA +1 -1
- {oarepo_runtime-1.5.114.dist-info → oarepo_runtime-1.5.116.dist-info}/RECORD +8 -7
- {oarepo_runtime-1.5.114.dist-info → oarepo_runtime-1.5.116.dist-info}/LICENSE +0 -0
- {oarepo_runtime-1.5.114.dist-info → oarepo_runtime-1.5.116.dist-info}/WHEEL +0 -0
- {oarepo_runtime-1.5.114.dist-info → oarepo_runtime-1.5.116.dist-info}/entry_points.txt +0 -0
- {oarepo_runtime-1.5.114.dist-info → oarepo_runtime-1.5.116.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,9 @@
|
|
1
|
+
from flask_resources.responses import ResponseHandler
|
2
|
+
|
3
|
+
class ExportableResponseHandler(ResponseHandler):
|
4
|
+
|
5
|
+
def __init__(self, serializer, export_code, name, headers=None):
|
6
|
+
"""Constructor."""
|
7
|
+
self.export_code = export_code
|
8
|
+
self.name = name
|
9
|
+
super().__init__(serializer, headers)
|
@@ -3,6 +3,7 @@ from oarepo_runtime.services.schema.marshmallow import DictOnlySchema
|
|
3
3
|
from oarepo_vocabularies.services.ui_schema import VocabularyI18nStrUIField
|
4
4
|
from idutils import to_url
|
5
5
|
|
6
|
+
|
6
7
|
class RDMIdentifierWithSchemaUISchema(ma.Schema):
|
7
8
|
scheme = ma.fields.String(
|
8
9
|
required=True,
|
@@ -59,6 +60,8 @@ class RDMRoleVocabularyUISchema(DictOnlySchema):
|
|
59
60
|
|
60
61
|
_version = ma.fields.String(data_key="@v", attribute="@v")
|
61
62
|
|
63
|
+
title = VocabularyI18nStrUIField()
|
64
|
+
|
62
65
|
|
63
66
|
class RDMAwardVocabularyUISchema(DictOnlySchema):
|
64
67
|
class Meta:
|
@@ -82,6 +82,7 @@ oarepo_runtime/resources/file_resource.py,sha256=Ta3bFce7l0xwqkkOMOEu9mxbB8BbKj5
|
|
82
82
|
oarepo_runtime/resources/json_serializer.py,sha256=82_-xQEtxKaPakv8R1oBAFbGnxskF_Ve4tcfcy4PetI,963
|
83
83
|
oarepo_runtime/resources/localized_ui_json_serializer.py,sha256=3V9cJaG_e1PMXKVX_wKfBp1LmbeForwHyBNYdyha4uQ,1878
|
84
84
|
oarepo_runtime/resources/resource.py,sha256=GK5yGnJIjH60wGqqDoOfwMQQFQDLZhJpU4zBJOmABI8,2063
|
85
|
+
oarepo_runtime/resources/responses.py,sha256=Cgmq4_xvKGd52rwFES3IhQFkGTgdo1bdNsBMdahkIXw,311
|
85
86
|
oarepo_runtime/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
86
87
|
oarepo_runtime/services/components.py,sha256=0aqmuNbGCQhfOI22f6mM2DxuKSTqstGOGyisOiqw9KE,15481
|
87
88
|
oarepo_runtime/services/generators.py,sha256=j87HitHA_w2awsz0C5IAAJ0qjg9JMtvdO3dvh6FQyfg,250
|
@@ -131,7 +132,7 @@ oarepo_runtime/services/schema/marshmallow_to_json_schema.py,sha256=VYLnVWHOoaxW
|
|
131
132
|
oarepo_runtime/services/schema/oneofschema.py,sha256=GnWH4Or_G5M0NgSmCoqMI6PBrJg5AC9RHrcB5QDKRq0,6661
|
132
133
|
oarepo_runtime/services/schema/polymorphic.py,sha256=bAbUoTIeDBiJPYPhpLEKKZekEdkHlpqkmNxk1hN3PDw,564
|
133
134
|
oarepo_runtime/services/schema/rdm.py,sha256=dBy1KCJ_XYAN_cffoRqLfQVEdZOKwmSpqGdEP4OL64k,1280
|
134
|
-
oarepo_runtime/services/schema/rdm_ui.py,sha256=
|
135
|
+
oarepo_runtime/services/schema/rdm_ui.py,sha256=KBTPAv4NkTNuhxIbOGzdBUXkwqKb-2q5EjWH2eTzc84,3430
|
135
136
|
oarepo_runtime/services/schema/ui.py,sha256=hHbj1S-DW1WqgYX31f6UjarY4wrE-qFLpH3oUhvGLyE,6192
|
136
137
|
oarepo_runtime/services/schema/validation.py,sha256=VFOKSxQLHwFb7bW8BJAFXWe_iTAZFOfqOnb2Ko_Yxxc,2085
|
137
138
|
oarepo_runtime/translations/default_translations.py,sha256=060GBlA1ghWxfeumo6NqxCCZDb-6OezOuF6pr-_GEOQ,104
|
@@ -147,9 +148,9 @@ tests/marshmallow_to_json/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJW
|
|
147
148
|
tests/marshmallow_to_json/test_datacite_ui_schema.py,sha256=82iLj8nW45lZOUewpWbLX3mpSkpa9lxo-vK-Qtv_1bU,48552
|
148
149
|
tests/marshmallow_to_json/test_simple_schema.py,sha256=izZN9p0v6kovtSZ6AdxBYmK_c6ZOti2_z_wPT_zXIr0,1500
|
149
150
|
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.
|
151
|
+
oarepo_runtime-1.5.116.dist-info/LICENSE,sha256=h2uWz0OaB3EN-J1ImdGJZzc7yvfQjvHVYdUhQ-H7ypY,1064
|
152
|
+
oarepo_runtime-1.5.116.dist-info/METADATA,sha256=LNOfs1J6JK78j9wPKZqLc1lH1Ggm2hTQK3sP4ST-Dpo,4721
|
153
|
+
oarepo_runtime-1.5.116.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
154
|
+
oarepo_runtime-1.5.116.dist-info/entry_points.txt,sha256=k7O5LZUOGsVeSpB7ulU0txBUNp1CVQG7Q7TJIVTPbzU,491
|
155
|
+
oarepo_runtime-1.5.116.dist-info/top_level.txt,sha256=bHhlkT1_RQC4IkfTQCqA3iN4KCB6cSFQlsXpQMSP-bE,21
|
156
|
+
oarepo_runtime-1.5.116.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|