oarepo-runtime 1.5.71__tar.gz → 1.5.73__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {oarepo_runtime-1.5.71/oarepo_runtime.egg-info → oarepo_runtime-1.5.73}/PKG-INFO +1 -1
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/cli/index.py +28 -9
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/components.py +27 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73/oarepo_runtime.egg-info}/PKG-INFO +1 -1
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/setup.cfg +2 -2
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/LICENSE +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/MANIFEST.in +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/README.md +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/__init__.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/cli/__init__.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/cli/assets.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/cli/base.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/cli/cf.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/cli/check.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/cli/configuration.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/cli/fixtures.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/cli/validate.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/datastreams/__init__.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/datastreams/asynchronous.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/datastreams/catalogue.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/datastreams/datastreams.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/datastreams/errors.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/datastreams/ext.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/datastreams/fixtures.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/datastreams/json.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/datastreams/readers/__init__.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/datastreams/readers/attachments.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/datastreams/readers/excel.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/datastreams/readers/json.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/datastreams/readers/service.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/datastreams/readers/yaml.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/datastreams/semi_asynchronous.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/datastreams/synchronous.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/datastreams/transformers.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/datastreams/types.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/datastreams/utils.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/datastreams/writers/__init__.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/datastreams/writers/attachments_file.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/datastreams/writers/attachments_service.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/datastreams/writers/service.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/datastreams/writers/utils.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/datastreams/writers/validation_errors.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/datastreams/writers/yaml.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/ext.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/ext_config.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/i18n/__init__.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/info/__init__.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/info/check.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/info/views.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/profile.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/proxies.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/records/__init__.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/records/dumpers/__init__.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/records/dumpers/edtf_interval.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/records/dumpers/multilingual_dumper.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/records/entity_resolvers/__init__.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/records/entity_resolvers/proxies.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/records/owners/__init__.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/records/owners/registry.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/records/relations/__init__.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/records/relations/base.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/records/relations/internal.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/records/relations/lookup.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/records/relations/pid_relation.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/records/systemfields/__init__.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/records/systemfields/featured_file.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/records/systemfields/has_draftcheck.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/records/systemfields/icu.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/records/systemfields/mapping.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/records/systemfields/owner.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/records/systemfields/record_status.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/records/systemfields/selectors.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/records/systemfields/synthetic.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/resources/__init__.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/resources/file_resource.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/resources/json_serializer.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/resources/localized_ui_json_serializer.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/__init__.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/config/__init__.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/config/permissions_presets.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/config/service.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/custom_fields/__init__.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/custom_fields/mappings.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/entity/__init__.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/entity/config.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/entity/schema.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/entity/service.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/expansions/__init__.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/expansions/expandable_fields.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/expansions/service.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/facets/__init__.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/facets/base.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/facets/date.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/facets/enum.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/facets/facet_groups_names.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/facets/max_facet.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/facets/nested_facet.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/facets/params.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/facets/year_histogram.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/files/__init__.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/files/components.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/files/service.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/generators.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/permissions/__init__.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/permissions/generators.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/relations/__init__.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/relations/components.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/relations/errors.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/relations/mapping.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/results.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/schema/__init__.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/schema/cf.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/schema/i18n.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/schema/i18n_ui.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/schema/i18n_validation.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/schema/marshmallow.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/schema/marshmallow_to_json_schema.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/schema/oneofschema.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/schema/polymorphic.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/schema/rdm.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/schema/ui.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/schema/validation.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/search.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/tasks.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/translations/cs/LC_MESSAGES/messages.mo +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/translations/cs/LC_MESSAGES/messages.po +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/translations/default_translations.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/translations/en/LC_MESSAGES/messages.mo +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/translations/en/LC_MESSAGES/messages.po +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/translations/jinjax_messages.jinja +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/translations/messages.pot +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/uow.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/utils/__init__.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/utils/functools.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/utils/path.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime.egg-info/SOURCES.txt +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime.egg-info/dependency_links.txt +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime.egg-info/entry_points.txt +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime.egg-info/requires.txt +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime.egg-info/top_level.txt +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/pyproject.toml +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/setup.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/tests/marshmallow_to_json/__init__.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/tests/marshmallow_to_json/test_datacite_ui_schema.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/tests/marshmallow_to_json/test_simple_schema.py +0 -0
- {oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/tests/pkg_data/__init__.py +0 -0
@@ -7,6 +7,7 @@ from flask.cli import with_appcontext
|
|
7
7
|
from invenio_db import db
|
8
8
|
from invenio_records_resources.proxies import current_service_registry
|
9
9
|
from invenio_search.proxies import current_search
|
10
|
+
import traceback
|
10
11
|
from werkzeug.utils import ImportStringError, import_string
|
11
12
|
|
12
13
|
try:
|
@@ -102,9 +103,10 @@ def record_or_service(model):
|
|
102
103
|
@click.option("--verbose/--no-verbose", default=False)
|
103
104
|
def reindex(model, bulk_size, verbose):
|
104
105
|
if not model:
|
105
|
-
services = current_service_registry._services.keys()
|
106
|
+
services = list(current_service_registry._services.keys())
|
106
107
|
else:
|
107
108
|
services = [model]
|
109
|
+
services = sort_services(services)
|
108
110
|
for service_id in services:
|
109
111
|
click.secho(f"Preparing to index {service_id}", file=sys.stderr)
|
110
112
|
|
@@ -200,14 +202,17 @@ def generate_bulk_data(record_generator, record_indexer, bulk_size):
|
|
200
202
|
data = []
|
201
203
|
n = 0
|
202
204
|
for record in tqdm(record_generator):
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
205
|
+
try:
|
206
|
+
index = record_indexer.record_to_index(record)
|
207
|
+
body = record_indexer._prepare_record(record, index)
|
208
|
+
index = record_indexer._prepare_index(index)
|
209
|
+
data.append({"index": {"_index": index, "_id": body["uuid"]}})
|
210
|
+
data.append(body)
|
211
|
+
if len(data) >= bulk_size:
|
212
|
+
yield data
|
213
|
+
data = []
|
214
|
+
except:
|
215
|
+
traceback.print_exc()
|
211
216
|
if data:
|
212
217
|
yield data
|
213
218
|
|
@@ -240,5 +245,19 @@ def users_record_generator(model_class):
|
|
240
245
|
except Exception as e:
|
241
246
|
click.secho(f"Could not index {model_class}: {e}", fg="red", file=sys.stderr)
|
242
247
|
|
248
|
+
priorities = [
|
249
|
+
'vocabular',
|
250
|
+
'users',
|
251
|
+
'groups'
|
252
|
+
]
|
253
|
+
|
254
|
+
def sort_services(services):
|
255
|
+
def idx(x):
|
256
|
+
for idx, p in enumerate(priorities):
|
257
|
+
if p in x:
|
258
|
+
return idx, x
|
259
|
+
return len(priorities), x
|
260
|
+
services.sort(key=idx)
|
261
|
+
return services
|
243
262
|
|
244
263
|
RECORD_GENERATORS = {"users": users_record_generator}
|
@@ -9,6 +9,7 @@ from invenio_records import Record
|
|
9
9
|
from oarepo_runtime.services.custom_fields import CustomFieldsMixin, CustomFields, InlinedCustomFields
|
10
10
|
from oarepo_runtime.services.generators import RecordOwners
|
11
11
|
|
12
|
+
|
12
13
|
try:
|
13
14
|
from invenio_drafts_resources.services.records.uow import ParentRecordCommitOp
|
14
15
|
except ImportError:
|
@@ -88,3 +89,29 @@ class CustomFieldsComponent(ServiceComponent):
|
|
88
89
|
config = current_app.config.get(cf.config_key, {})
|
89
90
|
for c in config:
|
90
91
|
record[c.name] =data.get(c.name)
|
92
|
+
|
93
|
+
def process_service_configs(service_configs):
|
94
|
+
"""
|
95
|
+
Processes a list of service_config classes. If a class has a `components` attribute,
|
96
|
+
it extends the result with the values in it.
|
97
|
+
|
98
|
+
:param service_config: List of service_config classes to process.
|
99
|
+
:return: A flattened list of processed components.
|
100
|
+
"""
|
101
|
+
processed_components = []
|
102
|
+
|
103
|
+
for config in service_configs:
|
104
|
+
|
105
|
+
if hasattr(config, "build"):
|
106
|
+
config = config.build(current_app)
|
107
|
+
|
108
|
+
if hasattr(config, 'components'):
|
109
|
+
component_property = config.components
|
110
|
+
if isinstance(component_property, list):
|
111
|
+
processed_components.extend(component_property)
|
112
|
+
elif isinstance(component_property, tuple):
|
113
|
+
processed_components.extend(list (component_property))
|
114
|
+
else:
|
115
|
+
raise ValueError(f"{config} component's definition is not supported")
|
116
|
+
|
117
|
+
return processed_components
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[metadata]
|
2
2
|
name = oarepo-runtime
|
3
|
-
version = 1.5.
|
3
|
+
version = 1.5.73
|
4
4
|
description = A set of runtime extensions of Invenio repository
|
5
5
|
authors = Alzbeta Pokorna
|
6
6
|
readme = README.md
|
@@ -8,7 +8,7 @@ long_description = file:README.md
|
|
8
8
|
long_description_content_type = text/markdown
|
9
9
|
|
10
10
|
[options]
|
11
|
-
python = >=3.
|
11
|
+
python = >=3.12
|
12
12
|
install_requires =
|
13
13
|
marshmallow
|
14
14
|
langcodes
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/datastreams/readers/__init__.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/datastreams/readers/attachments.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/datastreams/readers/service.py
RENAMED
File without changes
|
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/datastreams/semi_asynchronous.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/datastreams/writers/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/datastreams/writers/service.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
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/records/dumpers/edtf_interval.py
RENAMED
File without changes
|
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/records/entity_resolvers/__init__.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/records/entity_resolvers/proxies.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/records/relations/__init__.py
RENAMED
File without changes
|
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/records/relations/internal.py
RENAMED
File without changes
|
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/records/relations/pid_relation.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/records/systemfields/__init__.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/records/systemfields/featured_file.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/records/systemfields/mapping.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/records/systemfields/owner.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/records/systemfields/record_status.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/records/systemfields/selectors.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/records/systemfields/synthetic.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
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/custom_fields/__init__.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/custom_fields/mappings.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/expansions/__init__.py
RENAMED
File without changes
|
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/expansions/service.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/facets/facet_groups_names.py
RENAMED
File without changes
|
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/facets/nested_facet.py
RENAMED
File without changes
|
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/facets/year_histogram.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/permissions/__init__.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/permissions/generators.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/relations/__init__.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/relations/components.py
RENAMED
File without changes
|
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/relations/mapping.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/schema/i18n_validation.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/schema/marshmallow.py
RENAMED
File without changes
|
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/schema/oneofschema.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/schema/polymorphic.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/services/schema/validation.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/translations/default_translations.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/oarepo_runtime/translations/jinjax_messages.jinja
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.71 → oarepo_runtime-1.5.73}/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
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/tests/marshmallow_to_json/test_datacite_ui_schema.py
RENAMED
File without changes
|
{oarepo_runtime-1.5.71 → oarepo_runtime-1.5.73}/tests/marshmallow_to_json/test_simple_schema.py
RENAMED
File without changes
|
File without changes
|