oarepo-runtime 1.5.122__tar.gz → 1.5.124__tar.gz
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-1.5.122/oarepo_runtime.egg-info → oarepo_runtime-1.5.124}/PKG-INFO +1 -1
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/config/permissions_presets.py +5 -3
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/schema/ui.py +41 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124/oarepo_runtime.egg-info}/PKG-INFO +1 -1
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/setup.cfg +1 -1
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/LICENSE +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/MANIFEST.in +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/README.md +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/__init__.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/cli/__init__.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/cli/assets.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/cli/base.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/cli/cf.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/cli/check.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/cli/configuration.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/cli/fixtures.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/cli/index.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/cli/permissions/__init__.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/cli/permissions/base.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/cli/permissions/evaluate.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/cli/permissions/list.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/cli/permissions/search.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/cli/validate.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/__init__.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/asynchronous.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/catalogue.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/datastreams.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/errors.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/ext.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/fixtures.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/json.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/readers/__init__.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/readers/attachments.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/readers/excel.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/readers/json.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/readers/service.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/readers/yaml.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/semi_asynchronous.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/synchronous.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/transformers.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/types.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/utils.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/writers/__init__.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/writers/attachments_file.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/writers/attachments_service.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/writers/publish.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/writers/service.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/writers/utils.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/writers/validation_errors.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/writers/yaml.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/ext.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/ext_config.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/i18n/__init__.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/info/__init__.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/info/check.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/info/permissions/__init__.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/info/permissions/debug.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/info/views.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/profile.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/proxies.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/__init__.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/dumpers/__init__.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/dumpers/edtf_interval.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/dumpers/multilingual_dumper.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/entity_resolvers/__init__.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/entity_resolvers/proxies.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/mappings/__init__.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/mappings/rdm_parent_mapping.json +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/owners/__init__.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/owners/registry.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/relations/__init__.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/relations/base.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/relations/internal.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/relations/lookup.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/relations/pid_relation.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/systemfields/__init__.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/systemfields/featured_file.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/systemfields/has_draftcheck.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/systemfields/icu.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/systemfields/mapping.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/systemfields/owner.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/systemfields/record_status.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/systemfields/selectors.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/systemfields/synthetic.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/resources/__init__.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/resources/config.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/resources/file_resource.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/resources/json_serializer.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/resources/localized_ui_json_serializer.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/resources/resource.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/resources/responses.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/__init__.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/components.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/config/__init__.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/config/link_conditions.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/config/service.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/custom_fields/__init__.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/custom_fields/mappings.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/entity/__init__.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/entity/config.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/entity/schema.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/entity/service.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/expansions/__init__.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/expansions/expandable_fields.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/expansions/service.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/facets/__init__.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/facets/base.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/facets/date.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/facets/enum.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/facets/facet_groups_names.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/facets/max_facet.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/facets/nested_facet.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/facets/params.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/facets/year_histogram.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/files/__init__.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/files/components.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/files/service.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/generators.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/permissions/__init__.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/permissions/generators.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/records/__init__.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/records/links.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/relations/__init__.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/relations/components.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/relations/errors.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/relations/mapping.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/results.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/schema/__init__.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/schema/cf.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/schema/i18n.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/schema/i18n_ui.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/schema/i18n_validation.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/schema/marshmallow.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/schema/marshmallow_to_json_schema.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/schema/oneofschema.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/schema/polymorphic.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/schema/rdm.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/schema/rdm_ui.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/schema/validation.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/search.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/service.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/tasks.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/translations/cs/LC_MESSAGES/messages.mo +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/translations/cs/LC_MESSAGES/messages.po +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/translations/default_translations.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/translations/en/LC_MESSAGES/messages.mo +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/translations/en/LC_MESSAGES/messages.po +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/translations/messages.pot +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/uow.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/utils/__init__.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/utils/functools.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/utils/path.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime.egg-info/SOURCES.txt +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime.egg-info/dependency_links.txt +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime.egg-info/entry_points.txt +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime.egg-info/requires.txt +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime.egg-info/top_level.txt +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/pyproject.toml +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/setup.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/tests/marshmallow_to_json/__init__.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/tests/marshmallow_to_json/test_datacite_ui_schema.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/tests/marshmallow_to_json/test_simple_schema.py +0 -0
- {oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/tests/pkg_data/__init__.py +0 -0
@@ -39,7 +39,7 @@ class OaiHarvesterPermissionPolicy(RecordPermissionPolicy):
|
|
39
39
|
can_draft_commit_files = [SystemProcess()]
|
40
40
|
can_draft_read_files = [SystemProcess()]
|
41
41
|
can_draft_update_files = [SystemProcess()]
|
42
|
-
|
42
|
+
can_draft_delete_files = [SystemProcess()]
|
43
43
|
|
44
44
|
|
45
45
|
class ReadOnlyPermissionPolicy(RecordPermissionPolicy):
|
@@ -76,6 +76,7 @@ class ReadOnlyPermissionPolicy(RecordPermissionPolicy):
|
|
76
76
|
can_draft_commit_files = [SystemProcess()]
|
77
77
|
can_draft_read_files = [SystemProcess()]
|
78
78
|
can_draft_update_files = [SystemProcess()]
|
79
|
+
can_draft_delete_files = [SystemProcess()]
|
79
80
|
|
80
81
|
can_add_community = [SystemProcess()]
|
81
82
|
can_remove_community = [SystemProcess()]
|
@@ -85,7 +86,6 @@ class ReadOnlyPermissionPolicy(RecordPermissionPolicy):
|
|
85
86
|
can_lift_embargo = [SystemProcess()]
|
86
87
|
|
87
88
|
|
88
|
-
|
89
89
|
class EveryonePermissionPolicy(RecordPermissionPolicy):
|
90
90
|
"""record policy for read only repository"""
|
91
91
|
|
@@ -120,6 +120,7 @@ class EveryonePermissionPolicy(RecordPermissionPolicy):
|
|
120
120
|
can_draft_commit_files = [SystemProcess(), AnyUser()]
|
121
121
|
can_draft_read_files = [SystemProcess(), AnyUser()]
|
122
122
|
can_draft_update_files = [SystemProcess(), AnyUser()]
|
123
|
+
can_draft_delete_files = [SystemProcess(), AnyUser()]
|
123
124
|
|
124
125
|
can_add_community = [SystemProcess(), AnyUser()]
|
125
126
|
can_remove_community = [SystemProcess(), AnyUser()]
|
@@ -148,6 +149,7 @@ class AuthenticatedPermissionPolicy(RecordPermissionPolicy):
|
|
148
149
|
can_update_files = [SystemProcess(), AuthenticatedUser()]
|
149
150
|
can_list_files = [SystemProcess(), AuthenticatedUser()]
|
150
151
|
can_manage_files = [SystemProcess(), AuthenticatedUser()]
|
152
|
+
can_delete_files = [SystemProcess(), AuthenticatedUser()]
|
151
153
|
|
152
154
|
can_edit = [SystemProcess(), AuthenticatedUser()]
|
153
155
|
can_new_version = [SystemProcess(), AuthenticatedUser()]
|
@@ -163,10 +165,10 @@ class AuthenticatedPermissionPolicy(RecordPermissionPolicy):
|
|
163
165
|
can_draft_commit_files = [SystemProcess(), AuthenticatedUser()]
|
164
166
|
can_draft_read_files = [SystemProcess(), AuthenticatedUser()]
|
165
167
|
can_draft_update_files = [SystemProcess(), AuthenticatedUser()]
|
168
|
+
can_draft_delete_files = [SystemProcess(), AuthenticatedUser()]
|
166
169
|
|
167
170
|
can_add_community = [SystemProcess(), AuthenticatedUser()]
|
168
171
|
can_remove_community = [SystemProcess(), AuthenticatedUser()]
|
169
172
|
|
170
|
-
can_delete_files = [SystemProcess(), AuthenticatedUser()]
|
171
173
|
can_manage_record_access = [SystemProcess(), AuthenticatedUser()]
|
172
174
|
can_lift_embargo = [SystemProcess(), AuthenticatedUser()]
|
@@ -2,6 +2,9 @@ import datetime
|
|
2
2
|
import re
|
3
3
|
|
4
4
|
import marshmallow as ma
|
5
|
+
from marshmallow.fields import Dict, Nested
|
6
|
+
from marshmallow_utils.fields import SanitizedUnicode
|
7
|
+
from invenio_rdm_records.services.schemas.pids import PIDSchema
|
5
8
|
from babel.dates import format_date
|
6
9
|
from babel_edtf import format_edtf
|
7
10
|
from flask import current_app
|
@@ -19,6 +22,7 @@ from marshmallow_utils.fields import (
|
|
19
22
|
FormatEDTF,
|
20
23
|
FormatTime,
|
21
24
|
)
|
25
|
+
from invenio_rdm_records.services.schemas.parent import RDMParentSchema
|
22
26
|
from marshmallow_utils.fields.babel import BabelFormatField
|
23
27
|
|
24
28
|
from oarepo_runtime.i18n import gettext
|
@@ -26,6 +30,9 @@ from oarepo_runtime.i18n import lazy_gettext as _
|
|
26
30
|
|
27
31
|
from .marshmallow import RDMBaseRecordSchema
|
28
32
|
|
33
|
+
from invenio_rdm_records.services.schemas.record import validate_scheme
|
34
|
+
from idutils import to_url
|
35
|
+
|
29
36
|
|
30
37
|
def current_default_locale():
|
31
38
|
"""Get the Flask app's default locale."""
|
@@ -179,10 +186,44 @@ class AccessStatusField(ma.fields.Field):
|
|
179
186
|
}
|
180
187
|
|
181
188
|
|
189
|
+
# to be able to have access to entire pids object
|
190
|
+
class PIDsField(Dict):
|
191
|
+
"""Custom Dict field for PIDs that adds URLs after serialization."""
|
192
|
+
|
193
|
+
def _serialize(self, value, attr, obj, **kwargs):
|
194
|
+
"""Serialize the PIDs and add URLs to them."""
|
195
|
+
serialized = super()._serialize(value, attr, obj, **kwargs)
|
196
|
+
|
197
|
+
if serialized:
|
198
|
+
for scheme, pid in serialized.items():
|
199
|
+
if scheme and pid and isinstance(pid, dict) and pid.get("identifier"):
|
200
|
+
url = to_url(pid["identifier"], scheme.lower(), url_scheme="https")
|
201
|
+
if url:
|
202
|
+
pid["url"] = url
|
203
|
+
|
204
|
+
return serialized
|
205
|
+
|
206
|
+
|
207
|
+
class InvenioRDMParentUISchema(RDMParentSchema):
|
208
|
+
"""Parent schema."""
|
209
|
+
|
210
|
+
pids = PIDsField(
|
211
|
+
keys=SanitizedUnicode(validate=validate_scheme),
|
212
|
+
values=Nested(PIDSchema),
|
213
|
+
)
|
214
|
+
|
215
|
+
|
182
216
|
class InvenioRDMUISchema(InvenioUISchema, RDMBaseRecordSchema):
|
217
|
+
"""RDM UI schema."""
|
218
|
+
|
183
219
|
is_draft = ma.fields.Boolean(dump_only=True)
|
184
220
|
access_status = AccessStatusField(attribute="access", dump_only=True)
|
185
221
|
versions = ma.fields.Nested(VersionsSchema, dump_only=True)
|
222
|
+
pids = PIDsField(
|
223
|
+
keys=SanitizedUnicode(validate=validate_scheme),
|
224
|
+
values=Nested(PIDSchema),
|
225
|
+
)
|
226
|
+
parent = ma.fields.Nested(InvenioRDMParentUISchema)
|
186
227
|
|
187
228
|
def hide_tombstone(self, data):
|
188
229
|
"""Hide tombstone info if the record isn't deleted and metadata if it is."""
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/cli/permissions/__init__.py
RENAMED
File without changes
|
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/cli/permissions/evaluate.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/asynchronous.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/readers/__init__.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/readers/attachments.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/readers/excel.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/readers/json.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/readers/service.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/readers/yaml.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/semi_asynchronous.py
RENAMED
File without changes
|
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/transformers.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/writers/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/writers/publish.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/writers/service.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/writers/utils.py
RENAMED
File without changes
|
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/datastreams/writers/yaml.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/info/permissions/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/dumpers/__init__.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/dumpers/edtf_interval.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/entity_resolvers/proxies.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/mappings/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/relations/__init__.py
RENAMED
File without changes
|
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/relations/internal.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/relations/lookup.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/relations/pid_relation.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/systemfields/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/systemfields/icu.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/systemfields/mapping.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/systemfields/owner.py
RENAMED
File without changes
|
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/systemfields/selectors.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/records/systemfields/synthetic.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/resources/json_serializer.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/config/__init__.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/config/link_conditions.py
RENAMED
File without changes
|
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/custom_fields/__init__.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/custom_fields/mappings.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/entity/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/expansions/__init__.py
RENAMED
File without changes
|
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/expansions/service.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/facets/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/facets/max_facet.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/facets/nested_facet.py
RENAMED
File without changes
|
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/facets/year_histogram.py
RENAMED
File without changes
|
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/files/components.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/permissions/__init__.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/permissions/generators.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/records/__init__.py
RENAMED
File without changes
|
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/relations/__init__.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/relations/components.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/relations/errors.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/relations/mapping.py
RENAMED
File without changes
|
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/schema/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/schema/i18n_validation.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/schema/marshmallow.py
RENAMED
File without changes
|
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/schema/oneofschema.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/schema/polymorphic.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime/services/schema/validation.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/oarepo_runtime.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-1.5.122 → oarepo_runtime-1.5.124}/tests/marshmallow_to_json/test_simple_schema.py
RENAMED
File without changes
|
File without changes
|