oarepo-runtime 2.0.0.dev11__py3-none-any.whl → 2.0.0.dev12__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/__init__.py +1 -1
- oarepo_runtime/api.py +5 -0
- oarepo_runtime/cli/search.py +4 -3
- oarepo_runtime/records/pid_providers.py +2 -1
- {oarepo_runtime-2.0.0.dev11.dist-info → oarepo_runtime-2.0.0.dev12.dist-info}/METADATA +1 -1
- {oarepo_runtime-2.0.0.dev11.dist-info → oarepo_runtime-2.0.0.dev12.dist-info}/RECORD +9 -9
- {oarepo_runtime-2.0.0.dev11.dist-info → oarepo_runtime-2.0.0.dev12.dist-info}/entry_points.txt +3 -0
- {oarepo_runtime-2.0.0.dev11.dist-info → oarepo_runtime-2.0.0.dev12.dist-info}/WHEEL +0 -0
- {oarepo_runtime-2.0.0.dev11.dist-info → oarepo_runtime-2.0.0.dev12.dist-info}/licenses/LICENSE +0 -0
oarepo_runtime/__init__.py
CHANGED
oarepo_runtime/api.py
CHANGED
@@ -251,6 +251,11 @@ class Model[
|
|
251
251
|
"""Get the PID type for the model."""
|
252
252
|
return self._pid_type_from_record(self.record_cls)
|
253
253
|
|
254
|
+
@property
|
255
|
+
def record_json_schema(self) -> str:
|
256
|
+
"""Get the json schema of the record."""
|
257
|
+
return self.record_cls.schema.value # type: ignore[attr-defined, no-any-return]
|
258
|
+
|
254
259
|
@property
|
255
260
|
def draft_pid_type(self) -> str | None:
|
256
261
|
"""Get the PID type for the model."""
|
oarepo_runtime/cli/search.py
CHANGED
@@ -10,13 +10,13 @@
|
|
10
10
|
|
11
11
|
from __future__ import annotations
|
12
12
|
|
13
|
+
from importlib import metadata as importlib_metadata
|
14
|
+
|
13
15
|
import click
|
14
16
|
from flask.cli import with_appcontext
|
15
17
|
from invenio_search.cli import index, search_version_check
|
16
18
|
from invenio_search.cli import init as original_init
|
17
19
|
|
18
|
-
from oarepo_runtime.services.records.mapping import update_all_records_mappings
|
19
|
-
|
20
20
|
|
21
21
|
@index.command()
|
22
22
|
@click.option("--force", is_flag=True, default=False)
|
@@ -31,4 +31,5 @@ def init(ctx: click.Context, force: bool) -> None:
|
|
31
31
|
defined inside the models.
|
32
32
|
"""
|
33
33
|
ctx.invoke(original_init, force=force)
|
34
|
-
|
34
|
+
for ep in importlib_metadata.entry_points(group="oarepo.cli.search.init"):
|
35
|
+
ep.load()()
|
@@ -23,7 +23,8 @@ else:
|
|
23
23
|
class UniversalPIDMixin(RecordIdProviderV2):
|
24
24
|
"""Mixin class to handle creation and management of universal PIDs for records."""
|
25
25
|
|
26
|
-
unpid_pid_type = "
|
26
|
+
unpid_pid_type = "recid"
|
27
|
+
"""Setting this to recid so that RDM can use it."""
|
27
28
|
unpid_default_status = PIDStatus.REGISTERED
|
28
29
|
|
29
30
|
@classmethod
|
@@ -1,15 +1,15 @@
|
|
1
|
-
oarepo_runtime/__init__.py,sha256=
|
2
|
-
oarepo_runtime/api.py,sha256=
|
1
|
+
oarepo_runtime/__init__.py,sha256=cUIeG2E4Jh0zema7HEQV6ejcTszVyS1-9iVD0XobEjI,686
|
2
|
+
oarepo_runtime/api.py,sha256=b4v9YTPLK5EsEXzKuEqnymh148GwxCKNpy34kpxWYrI,11842
|
3
3
|
oarepo_runtime/config.py,sha256=RUEPFn_5bKp9Wb0OY-Fb3VK30m35vF5IsLjYaQHhP3g,3838
|
4
4
|
oarepo_runtime/ext.py,sha256=JbbqMM2H0Sq-umN4506wTpAbo5og954u-8MdG0U-ysU,7833
|
5
5
|
oarepo_runtime/proxies.py,sha256=PXaRiBh5qs5-h8M81cJOgtqypFQcYUSjiSn2TLSujRw,648
|
6
6
|
oarepo_runtime/py.typed,sha256=RznSCjXReEUI9zkmD25E8XniG_MvPpLBF6MyNZA8MmE,42
|
7
7
|
oarepo_runtime/cli/__init__.py,sha256=H7GOeOBf0udgKWOdlAQswIMvRrD8BwcEjOVxIqP0Suw,731
|
8
|
-
oarepo_runtime/cli/search.py,sha256=
|
8
|
+
oarepo_runtime/cli/search.py,sha256=4fHkrjltUUPVUzJiuWaiWxTk62rIYxal3_3jRsZVMmI,1175
|
9
9
|
oarepo_runtime/records/__init__.py,sha256=AbWzmVCY7MhrpdEeI0e3lKzeugPMUSo8T08-NBVeig4,339
|
10
10
|
oarepo_runtime/records/drafts.py,sha256=CS-dUkrylNwscgBGfDyhwGBRCzwsyT6AA3Mhu40ShbY,1607
|
11
11
|
oarepo_runtime/records/mapping.py,sha256=SJbSzerT1645a93-3-Fgz_i3anzFNlrZqbjjwW2ctKs,2660
|
12
|
-
oarepo_runtime/records/pid_providers.py,sha256=
|
12
|
+
oarepo_runtime/records/pid_providers.py,sha256=DSpbVB2Z5GxnjhoY7_WJLfUfrr1UsArJye7CXPfEkNI,1773
|
13
13
|
oarepo_runtime/records/systemfields/__init__.py,sha256=g-u408qyNnsbUTpDtVVwlcyiJaO68GTjDN0W9rXs9pk,524
|
14
14
|
oarepo_runtime/records/systemfields/mapping.py,sha256=66OQavKewJEUMkghymOxvskIO0LUSP2E-MbHryeT5Nk,1968
|
15
15
|
oarepo_runtime/records/systemfields/publication_status.py,sha256=1g3VXNPh0FsiPCpe-7ZuaMEF4x8ffrDrt37Rqnjp0ng,2027
|
@@ -29,8 +29,8 @@ oarepo_runtime/services/records/mapping.py,sha256=y3oeToKEnaRYpMV3q2-2cXNzyzyL3X
|
|
29
29
|
oarepo_runtime/services/schema/__init__.py,sha256=jgAPI_uKC6Ug4KQWnwQVg3-aNaw-eHja323AUFo5ELo,351
|
30
30
|
oarepo_runtime/services/schema/i18n.py,sha256=9D1zOQaPKAnYzejB0vO-m2BJYnam0N0Lrq4jID7twfE,3174
|
31
31
|
oarepo_runtime/services/schema/i18n_ui.py,sha256=DbusphhGDeaobTt4nuwNgKZ6Houlu4Sv3SuMGkdjRRY,3582
|
32
|
-
oarepo_runtime-2.0.0.
|
33
|
-
oarepo_runtime-2.0.0.
|
34
|
-
oarepo_runtime-2.0.0.
|
35
|
-
oarepo_runtime-2.0.0.
|
36
|
-
oarepo_runtime-2.0.0.
|
32
|
+
oarepo_runtime-2.0.0.dev12.dist-info/METADATA,sha256=fmp7MHpzCupK6BCiZoTBCws1V5gqeLsG1Ol6kcEwVgU,4495
|
33
|
+
oarepo_runtime-2.0.0.dev12.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
34
|
+
oarepo_runtime-2.0.0.dev12.dist-info/entry_points.txt,sha256=rOfs8R1oXFN_dLH9zAZ6ydkvr83mDajegc6NBIRsCMQ,318
|
35
|
+
oarepo_runtime-2.0.0.dev12.dist-info/licenses/LICENSE,sha256=h2uWz0OaB3EN-J1ImdGJZzc7yvfQjvHVYdUhQ-H7ypY,1064
|
36
|
+
oarepo_runtime-2.0.0.dev12.dist-info/RECORD,,
|
File without changes
|
{oarepo_runtime-2.0.0.dev11.dist-info → oarepo_runtime-2.0.0.dev12.dist-info}/licenses/LICENSE
RENAMED
File without changes
|