oarepo-runtime 2.0.0.dev12__py3-none-any.whl → 2.0.0.dev13__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/ext.py +4 -4
- oarepo_runtime/services/config/permissions.py +16 -0
- {oarepo_runtime-2.0.0.dev12.dist-info → oarepo_runtime-2.0.0.dev13.dist-info}/METADATA +1 -1
- {oarepo_runtime-2.0.0.dev12.dist-info → oarepo_runtime-2.0.0.dev13.dist-info}/RECORD +8 -8
- {oarepo_runtime-2.0.0.dev12.dist-info → oarepo_runtime-2.0.0.dev13.dist-info}/WHEEL +0 -0
- {oarepo_runtime-2.0.0.dev12.dist-info → oarepo_runtime-2.0.0.dev13.dist-info}/entry_points.txt +0 -0
- {oarepo_runtime-2.0.0.dev12.dist-info → oarepo_runtime-2.0.0.dev13.dist-info}/licenses/LICENSE +0 -0
oarepo_runtime/__init__.py
CHANGED
oarepo_runtime/ext.py
CHANGED
@@ -182,17 +182,17 @@ class OARepoRuntime:
|
|
182
182
|
|
183
183
|
@cached_property
|
184
184
|
def published_indices(self) -> set[str]:
|
185
|
-
"""Return the set of published indices."""
|
185
|
+
"""Return the set of published indices for RDM-compatible records only."""
|
186
186
|
indices = set()
|
187
|
-
for model in self.
|
187
|
+
for model in self.rdm_models:
|
188
188
|
indices.add(model.record_cls.index.search_alias) # type: ignore[attr-defined]
|
189
189
|
return indices
|
190
190
|
|
191
191
|
@cached_property
|
192
192
|
def draft_indices(self) -> set[str]:
|
193
|
-
"""Return the set of draft indices."""
|
193
|
+
"""Return the set of draft indices for RDM-compatible records only."""
|
194
194
|
indices = set()
|
195
|
-
for model in self.
|
195
|
+
for model in self.rdm_models:
|
196
196
|
if model.draft_cls is not None:
|
197
197
|
indices.add(model.draft_cls.index.search_alias) # type: ignore[attr-defined]
|
198
198
|
return indices
|
@@ -60,3 +60,19 @@ class EveryonePermissionPolicy(RecordPermissionPolicy):
|
|
60
60
|
can_read_deleted: GeneratorList = (SystemProcess(), AnyUser())
|
61
61
|
can_manage_record_access: GeneratorList = (SystemProcess(), AnyUser())
|
62
62
|
can_lift_embargo: GeneratorList = (SystemProcess(), AnyUser())
|
63
|
+
|
64
|
+
can_draft_media_create_files: GeneratorList = (SystemProcess(), AnyUser())
|
65
|
+
can_draft_media_read_files: GeneratorList = (SystemProcess(), AnyUser())
|
66
|
+
can_draft_media_set_content_files: GeneratorList = (SystemProcess(), AnyUser())
|
67
|
+
can_draft_media_get_content_files: GeneratorList = (SystemProcess(), AnyUser())
|
68
|
+
can_draft_media_commit_files: GeneratorList = (SystemProcess(), AnyUser())
|
69
|
+
can_draft_media_update_files: GeneratorList = (SystemProcess(), AnyUser())
|
70
|
+
can_draft_media_delete_files: GeneratorList = (SystemProcess(), AnyUser())
|
71
|
+
|
72
|
+
can_media_read_files: GeneratorList = (SystemProcess(), AnyUser())
|
73
|
+
can_media_get_content_files: GeneratorList = (SystemProcess(), AnyUser())
|
74
|
+
can_media_create_files: GeneratorList = (SystemProcess(), AnyUser())
|
75
|
+
can_media_set_content_files: GeneratorList = (SystemProcess(), AnyUser())
|
76
|
+
can_media_commit_files: GeneratorList = (SystemProcess(), AnyUser())
|
77
|
+
can_media_update_files: GeneratorList = (SystemProcess(), AnyUser())
|
78
|
+
can_media_delete_files: GeneratorList = (SystemProcess(), AnyUser())
|
@@ -1,7 +1,7 @@
|
|
1
|
-
oarepo_runtime/__init__.py,sha256=
|
1
|
+
oarepo_runtime/__init__.py,sha256=r894xBe1prO_y5KF6ypvmNXdCVah_cg9sw78ozxkhZI,686
|
2
2
|
oarepo_runtime/api.py,sha256=b4v9YTPLK5EsEXzKuEqnymh148GwxCKNpy34kpxWYrI,11842
|
3
3
|
oarepo_runtime/config.py,sha256=RUEPFn_5bKp9Wb0OY-Fb3VK30m35vF5IsLjYaQHhP3g,3838
|
4
|
-
oarepo_runtime/ext.py,sha256=
|
4
|
+
oarepo_runtime/ext.py,sha256=CtUb3tkXsJv7l7lDq9yOeP1rDKaPhM2ULMIwqoJrBKo,7887
|
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
|
@@ -20,7 +20,7 @@ oarepo_runtime/services/results.py,sha256=fk-Enx_LwZLbw81yZ7CXVTku86vd3_fjprnb8l
|
|
20
20
|
oarepo_runtime/services/config/__init__.py,sha256=SX1kfIGk8HkohdLQrNpRQUTltksEyDcCa-kFXxrX4e8,711
|
21
21
|
oarepo_runtime/services/config/components.py,sha256=t6zPWcwsL4d_U4PelmHQ50ymDAY_N4YcgVnM6aklktY,23038
|
22
22
|
oarepo_runtime/services/config/link_conditions.py,sha256=raqf4yaBNLqNYgBxVNblo8MRJneVIFkwVNW7IW3AVYI,4309
|
23
|
-
oarepo_runtime/services/config/permissions.py,sha256=
|
23
|
+
oarepo_runtime/services/config/permissions.py,sha256=9_706Yyz7X6IXhSaRBnkmGOr7c8kLnEXNkGZxxgNafE,4138
|
24
24
|
oarepo_runtime/services/facets/__init__.py,sha256=k39ZYt1dMVOW01QRSTgx3CfuTYwvEWmL0VYTR3huVsE,349
|
25
25
|
oarepo_runtime/services/facets/params.py,sha256=BxAmPmHlPs5ILQsKR98jZUFOWBSeiF454vOSIVIJj40,4697
|
26
26
|
oarepo_runtime/services/records/__init__.py,sha256=c0n4vcMcJhSUWsKz0iyV4TTlGG8oLlJp0YEN0QGCZ8U,428
|
@@ -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.dev13.dist-info/METADATA,sha256=BAoNogu0Ldkm0lqjQGostFVEKm7pzhFSJaB1SOa8u2g,4495
|
33
|
+
oarepo_runtime-2.0.0.dev13.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
34
|
+
oarepo_runtime-2.0.0.dev13.dist-info/entry_points.txt,sha256=rOfs8R1oXFN_dLH9zAZ6ydkvr83mDajegc6NBIRsCMQ,318
|
35
|
+
oarepo_runtime-2.0.0.dev13.dist-info/licenses/LICENSE,sha256=h2uWz0OaB3EN-J1ImdGJZzc7yvfQjvHVYdUhQ-H7ypY,1064
|
36
|
+
oarepo_runtime-2.0.0.dev13.dist-info/RECORD,,
|
File without changes
|
{oarepo_runtime-2.0.0.dev12.dist-info → oarepo_runtime-2.0.0.dev13.dist-info}/entry_points.txt
RENAMED
File without changes
|
{oarepo_runtime-2.0.0.dev12.dist-info → oarepo_runtime-2.0.0.dev13.dist-info}/licenses/LICENSE
RENAMED
File without changes
|