oarepo-runtime 1.5.130__py3-none-any.whl → 1.5.131__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/pid_providers.py +22 -0
- {oarepo_runtime-1.5.130.dist-info → oarepo_runtime-1.5.131.dist-info}/METADATA +3 -2
- {oarepo_runtime-1.5.130.dist-info → oarepo_runtime-1.5.131.dist-info}/RECORD +7 -6
- {oarepo_runtime-1.5.130.dist-info → oarepo_runtime-1.5.131.dist-info}/WHEEL +1 -1
- {oarepo_runtime-1.5.130.dist-info → oarepo_runtime-1.5.131.dist-info}/entry_points.txt +0 -0
- {oarepo_runtime-1.5.130.dist-info → oarepo_runtime-1.5.131.dist-info/licenses}/LICENSE +0 -0
- {oarepo_runtime-1.5.130.dist-info → oarepo_runtime-1.5.131.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,22 @@
|
|
1
|
+
from invenio_pidstore.models import PersistentIdentifier, PIDStatus
|
2
|
+
|
3
|
+
|
4
|
+
class UniversalPIDMixin:
|
5
|
+
unpid_pid_type = "unpid"
|
6
|
+
unpid_default_status = PIDStatus.REGISTERED
|
7
|
+
|
8
|
+
@classmethod
|
9
|
+
def create(cls, object_type=None, object_uuid=None, options=None, **kwargs):
|
10
|
+
pid = super().create(
|
11
|
+
object_type=object_type, object_uuid=object_uuid, options=options, **kwargs
|
12
|
+
)
|
13
|
+
assert pid.pid.pid_value is not None
|
14
|
+
control_pid = PersistentIdentifier.create(
|
15
|
+
cls.unpid_pid_type,
|
16
|
+
pid.pid.pid_value,
|
17
|
+
pid_provider=None,
|
18
|
+
object_type=object_type,
|
19
|
+
object_uuid=object_uuid,
|
20
|
+
status=cls.unpid_default_status,
|
21
|
+
)
|
22
|
+
return pid
|
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.4
|
2
2
|
Name: oarepo-runtime
|
3
|
-
Version: 1.5.
|
3
|
+
Version: 1.5.131
|
4
4
|
Summary: A set of runtime extensions of Invenio repository
|
5
5
|
Description-Content-Type: text/markdown
|
6
6
|
License-File: LICENSE
|
@@ -22,6 +22,7 @@ Requires-Dist: oarepo-tools; extra == "dev"
|
|
22
22
|
Provides-Extra: tests
|
23
23
|
Requires-Dist: pytest>=7.1.2; extra == "tests"
|
24
24
|
Requires-Dist: psutil; extra == "tests"
|
25
|
+
Dynamic: license-file
|
25
26
|
|
26
27
|
# OARepo runtime
|
27
28
|
|
@@ -54,6 +54,7 @@ oarepo_runtime/info/permissions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm
|
|
54
54
|
oarepo_runtime/info/permissions/debug.py,sha256=2gak5W64g_AAZoX8cCII2di4G_jBo1ZvnU5ceP_u6z4,6722
|
55
55
|
oarepo_runtime/records/__init__.py,sha256=JUf9_o09_6q4vuG43JzhSeTu7c-m_CVDSmgTQ7epYEo,1776
|
56
56
|
oarepo_runtime/records/drafts.py,sha256=8BRmxXcKyVMBQbMMhVScPS_T7lwvR8kGKYQAxaVaD1k,1371
|
57
|
+
oarepo_runtime/records/pid_providers.py,sha256=V9KIeffLoFwjh7PDEBkpmVQb2j7w9pgKr9OlHV5g8S4,736
|
57
58
|
oarepo_runtime/records/dumpers/__init__.py,sha256=OmzNhLdMNKibmCksnj9eTX9xPBG30dziiK3j3bAAp3k,233
|
58
59
|
oarepo_runtime/records/dumpers/edtf_interval.py,sha256=8bE3JlaR7b33rxDc7LW9R8jcwNI66Zb07Jee6YUmlrE,1231
|
59
60
|
oarepo_runtime/records/dumpers/multilingual_dumper.py,sha256=PbNFCLsiH4XV3E1v8xga_fzlcEImHy8OXn_UKh_8VBU,1090
|
@@ -146,13 +147,13 @@ oarepo_runtime/translations/en/LC_MESSAGES/messages.po,sha256=7-5S3iINOSFSI5gVdR
|
|
146
147
|
oarepo_runtime/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
147
148
|
oarepo_runtime/utils/functools.py,sha256=gKS9YZtlIYcDvdNA9cmYO00yjiXBYV1jg8VpcRUyQyg,1324
|
148
149
|
oarepo_runtime/utils/path.py,sha256=V1NVyk3m12_YLbj7QHYvUpE1wScO78bYsX1LOLeXDkI,3108
|
150
|
+
oarepo_runtime-1.5.131.dist-info/licenses/LICENSE,sha256=h2uWz0OaB3EN-J1ImdGJZzc7yvfQjvHVYdUhQ-H7ypY,1064
|
149
151
|
tests/marshmallow_to_json/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
150
152
|
tests/marshmallow_to_json/test_datacite_ui_schema.py,sha256=82iLj8nW45lZOUewpWbLX3mpSkpa9lxo-vK-Qtv_1bU,48552
|
151
153
|
tests/marshmallow_to_json/test_simple_schema.py,sha256=izZN9p0v6kovtSZ6AdxBYmK_c6ZOti2_z_wPT_zXIr0,1500
|
152
154
|
tests/pkg_data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
153
|
-
oarepo_runtime-1.5.
|
154
|
-
oarepo_runtime-1.5.
|
155
|
-
oarepo_runtime-1.5.
|
156
|
-
oarepo_runtime-1.5.
|
157
|
-
oarepo_runtime-1.5.
|
158
|
-
oarepo_runtime-1.5.130.dist-info/RECORD,,
|
155
|
+
oarepo_runtime-1.5.131.dist-info/METADATA,sha256=L5WjE2XqzWZFq_xhsIJwdo7NwozJhSNbaT-iZpyCjS4,4743
|
156
|
+
oarepo_runtime-1.5.131.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
|
157
|
+
oarepo_runtime-1.5.131.dist-info/entry_points.txt,sha256=k7O5LZUOGsVeSpB7ulU0txBUNp1CVQG7Q7TJIVTPbzU,491
|
158
|
+
oarepo_runtime-1.5.131.dist-info/top_level.txt,sha256=bHhlkT1_RQC4IkfTQCqA3iN4KCB6cSFQlsXpQMSP-bE,21
|
159
|
+
oarepo_runtime-1.5.131.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|