oarepo-runtime 1.4.43__tar.gz → 1.4.45__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. {oarepo-runtime-1.4.43/oarepo_runtime.egg-info → oarepo-runtime-1.4.45}/PKG-INFO +1 -1
  2. oarepo-runtime-1.4.45/oarepo_runtime/records/entity_resolvers/__init__.py +14 -0
  3. {oarepo-runtime-1.4.43/oarepo_runtime/records/resolvers → oarepo-runtime-1.4.45/oarepo_runtime/records/entity_resolvers}/proxies.py +11 -1
  4. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/resources/localized_ui_json_serializer.py +11 -3
  5. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/services/files/__init__.py +4 -2
  6. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/services/schema/ui.py +2 -1
  7. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45/oarepo_runtime.egg-info}/PKG-INFO +1 -1
  8. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime.egg-info/SOURCES.txt +2 -38
  9. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/setup.cfg +1 -1
  10. oarepo-runtime-1.4.43/oarepo_runtime/cf/__init__.py +0 -22
  11. oarepo-runtime-1.4.43/oarepo_runtime/cf/mappings.py +0 -10
  12. oarepo-runtime-1.4.43/oarepo_runtime/config/permissions_presets.py +0 -20
  13. oarepo-runtime-1.4.43/oarepo_runtime/config/service.py +0 -10
  14. oarepo-runtime-1.4.43/oarepo_runtime/drafts/systemfields/has_draftcheck.py +0 -10
  15. oarepo-runtime-1.4.43/oarepo_runtime/expansions/expandable_fields.py +0 -12
  16. oarepo-runtime-1.4.43/oarepo_runtime/expansions/service.py +0 -10
  17. oarepo-runtime-1.4.43/oarepo_runtime/facets/base.py +0 -10
  18. oarepo-runtime-1.4.43/oarepo_runtime/facets/date.py +0 -26
  19. oarepo-runtime-1.4.43/oarepo_runtime/facets/enum.py +0 -10
  20. oarepo-runtime-1.4.43/oarepo_runtime/facets/max_facet.py +0 -10
  21. oarepo-runtime-1.4.43/oarepo_runtime/facets/nested_facet.py +0 -10
  22. oarepo-runtime-1.4.43/oarepo_runtime/facets/params.py +0 -10
  23. oarepo-runtime-1.4.43/oarepo_runtime/i18n/dumper.py +0 -10
  24. oarepo-runtime-1.4.43/oarepo_runtime/i18n/schema.py +0 -10
  25. oarepo-runtime-1.4.43/oarepo_runtime/i18n/ui_schema.py +0 -20
  26. oarepo-runtime-1.4.43/oarepo_runtime/i18n/validation.py +0 -10
  27. oarepo-runtime-1.4.43/oarepo_runtime/marshmallow.py +0 -10
  28. oarepo-runtime-1.4.43/oarepo_runtime/records/resolvers/__init__.py +0 -5
  29. oarepo-runtime-1.4.43/oarepo_runtime/relations/__init__.py +0 -26
  30. oarepo-runtime-1.4.43/oarepo_runtime/relations/base.py +0 -22
  31. oarepo-runtime-1.4.43/oarepo_runtime/relations/components.py +0 -10
  32. oarepo-runtime-1.4.43/oarepo_runtime/relations/errors.py +0 -13
  33. oarepo-runtime-1.4.43/oarepo_runtime/relations/internal.py +0 -13
  34. oarepo-runtime-1.4.43/oarepo_runtime/relations/lookup.py +0 -10
  35. oarepo-runtime-1.4.43/oarepo_runtime/relations/mapping.py +0 -10
  36. oarepo-runtime-1.4.43/oarepo_runtime/relations/pid_relation.py +0 -20
  37. oarepo-runtime-1.4.43/oarepo_runtime/relations/uow.py +0 -12
  38. oarepo-runtime-1.4.43/oarepo_runtime/resolvers/__init__.py +0 -5
  39. oarepo-runtime-1.4.43/oarepo_runtime/resolvers/proxies.py +0 -10
  40. oarepo-runtime-1.4.43/oarepo_runtime/services/expansions/__init__.py +0 -0
  41. oarepo-runtime-1.4.43/oarepo_runtime/services/facets/__init__.py +0 -0
  42. oarepo-runtime-1.4.43/oarepo_runtime/services/relations/__init__.py +0 -0
  43. oarepo-runtime-1.4.43/oarepo_runtime/ui/__init__.py +0 -0
  44. oarepo-runtime-1.4.43/oarepo_runtime/ui/marshmallow.py +0 -34
  45. oarepo-runtime-1.4.43/oarepo_runtime/utils/__init__.py +0 -0
  46. oarepo-runtime-1.4.43/tests/pkg_data/__init__.py +0 -0
  47. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/LICENSE +0 -0
  48. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/MANIFEST.in +0 -0
  49. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/README.md +0 -0
  50. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/__init__.py +0 -0
  51. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/cli/__init__.py +0 -0
  52. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/cli/assets.py +0 -0
  53. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/cli/base.py +0 -0
  54. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/cli/cf.py +0 -0
  55. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/cli/check.py +0 -0
  56. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/cli/fixtures.py +0 -0
  57. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/cli/index.py +0 -0
  58. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/cli/validate.py +0 -0
  59. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/datastreams/__init__.py +0 -0
  60. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/datastreams/asynchronous.py +0 -0
  61. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/datastreams/catalogue.py +0 -0
  62. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/datastreams/datastreams.py +0 -0
  63. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/datastreams/errors.py +0 -0
  64. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/datastreams/ext.py +0 -0
  65. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/datastreams/fixtures.py +0 -0
  66. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/datastreams/json.py +0 -0
  67. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/datastreams/readers/__init__.py +0 -0
  68. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/datastreams/readers/attachments.py +0 -0
  69. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/datastreams/readers/excel.py +0 -0
  70. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/datastreams/readers/json.py +0 -0
  71. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/datastreams/readers/service.py +0 -0
  72. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/datastreams/readers/yaml.py +0 -0
  73. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/datastreams/semi_asynchronous.py +0 -0
  74. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/datastreams/synchronous.py +0 -0
  75. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/datastreams/transformers.py +0 -0
  76. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/datastreams/types.py +0 -0
  77. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/datastreams/utils.py +0 -0
  78. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/datastreams/writers/__init__.py +0 -0
  79. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/datastreams/writers/attachments_file.py +0 -0
  80. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/datastreams/writers/attachments_service.py +0 -0
  81. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/datastreams/writers/service.py +0 -0
  82. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/datastreams/writers/utils.py +0 -0
  83. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/datastreams/writers/validation_errors.py +0 -0
  84. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/datastreams/writers/yaml.py +0 -0
  85. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/ext.py +0 -0
  86. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/ext_config.py +0 -0
  87. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/i18n/__init__.py +0 -0
  88. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/profile.py +0 -0
  89. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/proxies.py +0 -0
  90. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/records/__init__.py +0 -0
  91. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/records/dumpers/__init__.py +0 -0
  92. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/records/dumpers/edtf_interval.py +0 -0
  93. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/records/dumpers/multilingual_dumper.py +0 -0
  94. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/records/relations/__init__.py +0 -0
  95. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/records/relations/base.py +0 -0
  96. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/records/relations/internal.py +0 -0
  97. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/records/relations/lookup.py +0 -0
  98. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/records/relations/pid_relation.py +0 -0
  99. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/records/systemfields/__init__.py +0 -0
  100. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/records/systemfields/featured_file.py +0 -0
  101. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/records/systemfields/has_draftcheck.py +0 -0
  102. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/records/systemfields/icu.py +0 -0
  103. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/records/systemfields/mapping.py +0 -0
  104. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/records/systemfields/record_status.py +0 -0
  105. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/resources/__init__.py +0 -0
  106. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/resources/file_resource.py +0 -0
  107. {oarepo-runtime-1.4.43/oarepo_runtime/config → oarepo-runtime-1.4.45/oarepo_runtime/services}/__init__.py +0 -0
  108. {oarepo-runtime-1.4.43/oarepo_runtime/drafts → oarepo-runtime-1.4.45/oarepo_runtime/services/config}/__init__.py +0 -0
  109. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/services/config/permissions_presets.py +0 -0
  110. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/services/config/service.py +0 -0
  111. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/services/custom_fields/__init__.py +0 -0
  112. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/services/custom_fields/mappings.py +0 -0
  113. {oarepo-runtime-1.4.43/oarepo_runtime/drafts/systemfields → oarepo-runtime-1.4.45/oarepo_runtime/services/expansions}/__init__.py +0 -0
  114. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/services/expansions/expandable_fields.py +0 -0
  115. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/services/expansions/service.py +0 -0
  116. {oarepo-runtime-1.4.43/oarepo_runtime/expansions → oarepo-runtime-1.4.45/oarepo_runtime/services/facets}/__init__.py +0 -0
  117. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/services/facets/base.py +0 -0
  118. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/services/facets/date.py +0 -0
  119. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/services/facets/enum.py +0 -0
  120. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/services/facets/facet_groups_names.py +0 -0
  121. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/services/facets/max_facet.py +0 -0
  122. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/services/facets/nested_facet.py +0 -0
  123. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/services/facets/params.py +0 -0
  124. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/services/files/service.py +0 -0
  125. {oarepo-runtime-1.4.43/oarepo_runtime/facets → oarepo-runtime-1.4.45/oarepo_runtime/services/relations}/__init__.py +0 -0
  126. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/services/relations/components.py +0 -0
  127. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/services/relations/errors.py +0 -0
  128. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/services/relations/mapping.py +0 -0
  129. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/services/results.py +0 -0
  130. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/services/schema/__init__.py +0 -0
  131. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/services/schema/cf.py +0 -0
  132. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/services/schema/i18n.py +0 -0
  133. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/services/schema/i18n_ui.py +0 -0
  134. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/services/schema/i18n_validation.py +0 -0
  135. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/services/schema/marshmallow.py +0 -0
  136. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/services/schema/polymorphic.py +0 -0
  137. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/services/schema/validation.py +0 -0
  138. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/services/search.py +0 -0
  139. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/translations/cs/LC_MESSAGES/messages.mo +0 -0
  140. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/translations/cs/LC_MESSAGES/messages.po +0 -0
  141. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/translations/default_translations.py +0 -0
  142. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/translations/en/LC_MESSAGES/messages.mo +0 -0
  143. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/translations/en/LC_MESSAGES/messages.po +0 -0
  144. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/translations/jinjax_messages.jinja +0 -0
  145. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/translations/messages.pot +0 -0
  146. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/uow.py +0 -0
  147. {oarepo-runtime-1.4.43/oarepo_runtime/services → oarepo-runtime-1.4.45/oarepo_runtime/utils}/__init__.py +0 -0
  148. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime/utils/path.py +0 -0
  149. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime.egg-info/dependency_links.txt +0 -0
  150. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime.egg-info/entry_points.txt +0 -0
  151. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime.egg-info/requires.txt +0 -0
  152. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/oarepo_runtime.egg-info/top_level.txt +0 -0
  153. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/pyproject.toml +0 -0
  154. {oarepo-runtime-1.4.43 → oarepo-runtime-1.4.45}/setup.py +0 -0
  155. {oarepo-runtime-1.4.43/oarepo_runtime/services/config → oarepo-runtime-1.4.45/tests/pkg_data}/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: oarepo-runtime
3
- Version: 1.4.43
3
+ Version: 1.4.45
4
4
  Summary: A set of runtime extensions of Invenio repository
5
5
  Description-Content-Type: text/markdown
6
6
  License-File: LICENSE
@@ -0,0 +1,14 @@
1
+ from oarepo import __version__ as oarepo_version
2
+
3
+ from oarepo_runtime.records.entity_resolvers.proxies import DraftProxy
4
+
5
+ # compatibility setting between invenio rdm 11 and invenio rdm 12
6
+ # can be removed when invenio rdm 11 is no longer supported
7
+ if oarepo_version.split(".")[0] == "11":
8
+ from invenio_users_resources.resolvers import UserResolver
9
+ from invenio_records_resources.references import RecordResolver, EntityResolver
10
+ else:
11
+ from invenio_users_resources.entity_resolvers import UserResolver
12
+ from invenio_records_resources.references import RecordResolver, EntityResolver
13
+
14
+ __all__ = ["DraftProxy", "UserResolver", "RecordResolver", "EntityResolver"]
@@ -1,5 +1,15 @@
1
1
  from invenio_pidstore.errors import PIDUnregistered
2
- from invenio_records_resources.references.resolvers.records import RecordProxy
2
+ from oarepo import __version__ as oarepo_version
3
+
4
+ # compatibility setting between invenio rdm 11 and invenio rdm 12
5
+ # can be removed when invenio rdm 11 is no longer supported
6
+ if oarepo_version.split(".")[0] == "11":
7
+ from invenio_records_resources.references.resolvers.records import RecordProxy
8
+ else:
9
+ from invenio_records_resources.references.entity_resolvers.records import (
10
+ RecordProxy,
11
+ )
12
+
3
13
  from sqlalchemy.exc import NoResultFound
4
14
 
5
15
 
@@ -1,6 +1,8 @@
1
- from oarepo_runtime.i18n import get_locale
1
+ import marshmallow
2
2
  from flask_resources import MarshmallowSerializer
3
3
 
4
+ from oarepo_runtime.i18n import get_locale
5
+
4
6
 
5
7
  class LocalizedUIJSONSerializer(MarshmallowSerializer):
6
8
  def __init__(
@@ -11,13 +13,19 @@ class LocalizedUIJSONSerializer(MarshmallowSerializer):
11
13
  schema_context=None,
12
14
  **serializer_options,
13
15
  ):
16
+ # the constructor instantiates the object_schema_cls, which is too early
17
+ # if the schema uses current_app (for example, for translations or custom fields)
18
+ # so we pass an empty schema and replace it later
14
19
  super().__init__(
15
20
  format_serializer_cls=format_serializer_cls,
16
- object_schema_cls=object_schema_cls,
17
- list_schema_cls=list_schema_cls,
21
+ object_schema_cls=marshmallow.Schema,
22
+ list_schema_cls=marshmallow.Schema,
18
23
  schema_context=schema_context or {},
19
24
  **serializer_options,
20
25
  )
26
+ # replace the object schema class
27
+ self.object_schema_cls = object_schema_cls
28
+ self.list_schema_cls = list_schema_cls
21
29
 
22
30
  def dump_obj(self, obj):
23
31
  """Dump the object using object schema class."""
@@ -1,6 +1,8 @@
1
1
  try:
2
- from invenio_records_resources.services.records.components import FilesOptionsComponent as FilesComponent
2
+ from invenio_records_resources.services.records.components import (
3
+ FilesOptionsComponent as FilesComponent,
4
+ )
3
5
  except ImportError:
4
6
  from invenio_records_resources.services.records.components import FilesComponent
5
7
 
6
- __all__= ('FilesComponent', )
8
+ __all__ = ("FilesComponent",)
@@ -5,7 +5,6 @@ import marshmallow as ma
5
5
  from babel.dates import format_date
6
6
  from babel_edtf import format_edtf
7
7
  from flask import current_app
8
- from oarepo_runtime.i18n import gettext
9
8
  from marshmallow_utils.fields import (
10
9
  BabelGettextDictField,
11
10
  FormatDate,
@@ -15,6 +14,8 @@ from marshmallow_utils.fields import (
15
14
  )
16
15
  from marshmallow_utils.fields.babel import BabelFormatField
17
16
 
17
+ from oarepo_runtime.i18n import gettext
18
+
18
19
 
19
20
  def current_default_locale():
20
21
  """Get the Flask app's default locale."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: oarepo-runtime
3
- Version: 1.4.43
3
+ Version: 1.4.45
4
4
  Summary: A set of runtime extensions of Invenio repository
5
5
  Description-Content-Type: text/markdown
6
6
  License-File: LICENSE
@@ -7,7 +7,6 @@ setup.py
7
7
  oarepo_runtime/__init__.py
8
8
  oarepo_runtime/ext.py
9
9
  oarepo_runtime/ext_config.py
10
- oarepo_runtime/marshmallow.py
11
10
  oarepo_runtime/profile.py
12
11
  oarepo_runtime/proxies.py
13
12
  oarepo_runtime/uow.py
@@ -17,8 +16,6 @@ oarepo_runtime.egg-info/dependency_links.txt
17
16
  oarepo_runtime.egg-info/entry_points.txt
18
17
  oarepo_runtime.egg-info/requires.txt
19
18
  oarepo_runtime.egg-info/top_level.txt
20
- oarepo_runtime/cf/__init__.py
21
- oarepo_runtime/cf/mappings.py
22
19
  oarepo_runtime/cli/__init__.py
23
20
  oarepo_runtime/cli/assets.py
24
21
  oarepo_runtime/cli/base.py
@@ -27,9 +24,6 @@ oarepo_runtime/cli/check.py
27
24
  oarepo_runtime/cli/fixtures.py
28
25
  oarepo_runtime/cli/index.py
29
26
  oarepo_runtime/cli/validate.py
30
- oarepo_runtime/config/__init__.py
31
- oarepo_runtime/config/permissions_presets.py
32
- oarepo_runtime/config/service.py
33
27
  oarepo_runtime/datastreams/__init__.py
34
28
  oarepo_runtime/datastreams/asynchronous.py
35
29
  oarepo_runtime/datastreams/catalogue.py
@@ -56,52 +50,24 @@ oarepo_runtime/datastreams/writers/service.py
56
50
  oarepo_runtime/datastreams/writers/utils.py
57
51
  oarepo_runtime/datastreams/writers/validation_errors.py
58
52
  oarepo_runtime/datastreams/writers/yaml.py
59
- oarepo_runtime/drafts/__init__.py
60
- oarepo_runtime/drafts/systemfields/__init__.py
61
- oarepo_runtime/drafts/systemfields/has_draftcheck.py
62
- oarepo_runtime/expansions/__init__.py
63
- oarepo_runtime/expansions/expandable_fields.py
64
- oarepo_runtime/expansions/service.py
65
- oarepo_runtime/facets/__init__.py
66
- oarepo_runtime/facets/base.py
67
- oarepo_runtime/facets/date.py
68
- oarepo_runtime/facets/enum.py
69
- oarepo_runtime/facets/max_facet.py
70
- oarepo_runtime/facets/nested_facet.py
71
- oarepo_runtime/facets/params.py
72
53
  oarepo_runtime/i18n/__init__.py
73
- oarepo_runtime/i18n/dumper.py
74
- oarepo_runtime/i18n/schema.py
75
- oarepo_runtime/i18n/ui_schema.py
76
- oarepo_runtime/i18n/validation.py
77
54
  oarepo_runtime/records/__init__.py
78
55
  oarepo_runtime/records/dumpers/__init__.py
79
56
  oarepo_runtime/records/dumpers/edtf_interval.py
80
57
  oarepo_runtime/records/dumpers/multilingual_dumper.py
58
+ oarepo_runtime/records/entity_resolvers/__init__.py
59
+ oarepo_runtime/records/entity_resolvers/proxies.py
81
60
  oarepo_runtime/records/relations/__init__.py
82
61
  oarepo_runtime/records/relations/base.py
83
62
  oarepo_runtime/records/relations/internal.py
84
63
  oarepo_runtime/records/relations/lookup.py
85
64
  oarepo_runtime/records/relations/pid_relation.py
86
- oarepo_runtime/records/resolvers/__init__.py
87
- oarepo_runtime/records/resolvers/proxies.py
88
65
  oarepo_runtime/records/systemfields/__init__.py
89
66
  oarepo_runtime/records/systemfields/featured_file.py
90
67
  oarepo_runtime/records/systemfields/has_draftcheck.py
91
68
  oarepo_runtime/records/systemfields/icu.py
92
69
  oarepo_runtime/records/systemfields/mapping.py
93
70
  oarepo_runtime/records/systemfields/record_status.py
94
- oarepo_runtime/relations/__init__.py
95
- oarepo_runtime/relations/base.py
96
- oarepo_runtime/relations/components.py
97
- oarepo_runtime/relations/errors.py
98
- oarepo_runtime/relations/internal.py
99
- oarepo_runtime/relations/lookup.py
100
- oarepo_runtime/relations/mapping.py
101
- oarepo_runtime/relations/pid_relation.py
102
- oarepo_runtime/relations/uow.py
103
- oarepo_runtime/resolvers/__init__.py
104
- oarepo_runtime/resolvers/proxies.py
105
71
  oarepo_runtime/resources/__init__.py
106
72
  oarepo_runtime/resources/file_resource.py
107
73
  oarepo_runtime/resources/localized_ui_json_serializer.py
@@ -146,8 +112,6 @@ oarepo_runtime/translations/cs/LC_MESSAGES/messages.mo
146
112
  oarepo_runtime/translations/cs/LC_MESSAGES/messages.po
147
113
  oarepo_runtime/translations/en/LC_MESSAGES/messages.mo
148
114
  oarepo_runtime/translations/en/LC_MESSAGES/messages.po
149
- oarepo_runtime/ui/__init__.py
150
- oarepo_runtime/ui/marshmallow.py
151
115
  oarepo_runtime/utils/__init__.py
152
116
  oarepo_runtime/utils/path.py
153
117
  tests/pkg_data/__init__.py
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = oarepo-runtime
3
- version = 1.4.43
3
+ version = 1.4.45
4
4
  description = A set of runtime extensions of Invenio repository
5
5
  authors = Alzbeta Pokorna
6
6
  readme = README.md
@@ -1,22 +0,0 @@
1
- import warnings
2
-
3
- from oarepo_runtime.services.custom_fields import (
4
- CustomFields,
5
- CustomFieldsMixin,
6
- InlinedCustomFields,
7
- InlinedCustomFieldsSchemaMixin,
8
- InlinedUICustomFieldsSchemaMixin,
9
- )
10
-
11
- warnings.warn(
12
- "Deprecated, please use oarepo_runtime.services.custom_fields",
13
- DeprecationWarning,
14
- )
15
-
16
- __all__ = (
17
- "CustomFieldsMixin",
18
- "CustomFields",
19
- "InlinedCustomFields",
20
- "InlinedCustomFieldsSchemaMixin",
21
- "InlinedUICustomFieldsSchemaMixin",
22
- )
@@ -1,10 +0,0 @@
1
- import warnings
2
-
3
- from oarepo_runtime.services.custom_fields.mappings import Mapping, prepare_cf_indices
4
-
5
- warnings.warn(
6
- "Deprecated, please use oarepo_runtime.services.custom_fields.mappings.Mapping",
7
- DeprecationWarning,
8
- )
9
-
10
- __all__ = ("Mapping", "prepare_cf_indices")
@@ -1,20 +0,0 @@
1
- import warnings
2
-
3
- from oarepo_runtime.services.config.permissions_presets import (
4
- AuthenticatedPermissionPolicy,
5
- EveryonePermissionPolicy,
6
- OaiHarvesterPermissionPolicy,
7
- ReadOnlyPermissionPolicy,
8
- )
9
-
10
- warnings.warn(
11
- "Deprecated, please use oarepo_runtime.services.config.permissions_presets",
12
- DeprecationWarning,
13
- )
14
-
15
- __all__ = (
16
- "OaiHarvesterPermissionPolicy",
17
- "ReadOnlyPermissionPolicy",
18
- "EveryonePermissionPolicy",
19
- "AuthenticatedPermissionPolicy",
20
- )
@@ -1,10 +0,0 @@
1
- import warnings
2
-
3
- from oarepo_runtime.services.config.service import PermissionsPresetsConfigMixin
4
-
5
- warnings.warn(
6
- "Deprecated, please use oarepo_runtime.services.config.service.PermissionsPresetsConfigMixin",
7
- DeprecationWarning,
8
- )
9
-
10
- __all__ = ("PermissionsPresetsConfigMixin",)
@@ -1,10 +0,0 @@
1
- import warnings
2
-
3
- from oarepo_runtime.records.systemfields.has_draftcheck import HasDraftCheckField
4
-
5
- warnings.warn(
6
- "Deprecated, please use oarepo_runtime.records.systemfields.has_draftcheck.HasDraftCheckFieldt",
7
- DeprecationWarning,
8
- )
9
-
10
- __all__ = ("HasDraftCheckField",)
@@ -1,12 +0,0 @@
1
- import warnings
2
-
3
- from oarepo_runtime.services.expansions.expandable_fields import (
4
- ReferencedRecordExpandableField,
5
- )
6
-
7
- warnings.warn(
8
- "Deprecated, please use oarepo_runtime.services.expansions.expandable_fields.ReferencedRecordExpandableField",
9
- DeprecationWarning,
10
- )
11
-
12
- __all__ = ("ReferencedRecordExpandableField",)
@@ -1,10 +0,0 @@
1
- import warnings
2
-
3
- from oarepo_runtime.services.expansions.service import ExpandableFieldsServiceMixin
4
-
5
- warnings.warn(
6
- "Deprecated, please use oarepo_runtime.services.expansions.service.ExpandableFieldsServiceMixin",
7
- DeprecationWarning,
8
- )
9
-
10
- __all__ = ("ExpandableFieldsServiceMixin",)
@@ -1,10 +0,0 @@
1
- import warnings
2
-
3
- from oarepo_runtime.services.facets.base import LabelledValuesTermsFacet
4
-
5
- warnings.warn(
6
- "Deprecated, please use oarepo_runtime.services.facets.based.LabelledValuesTermsFacet",
7
- DeprecationWarning,
8
- )
9
-
10
- __all__ = ("LabelledValuesTermsFacet",)
@@ -1,26 +0,0 @@
1
- import warnings
2
-
3
- from oarepo_runtime.services.facets.date import (
4
- AutoDateHistogramFacet,
5
- DateFacet,
6
- DateIntervalFacet,
7
- DateTimeFacet,
8
- EDTFFacet,
9
- EDTFIntervalFacet,
10
- TimeFacet,
11
- )
12
-
13
- warnings.warn(
14
- "Deprecated, please use oarepo_runtime.services.facets.date",
15
- DeprecationWarning,
16
- )
17
-
18
- __all__ = (
19
- "DateFacet",
20
- "TimeFacet",
21
- "DateTimeFacet",
22
- "EDTFFacet",
23
- "AutoDateHistogramFacet",
24
- "EDTFIntervalFacet",
25
- "DateIntervalFacet",
26
- )
@@ -1,10 +0,0 @@
1
- import warnings
2
-
3
- from oarepo_runtime.services.facets.enum import EnumTermsFacet
4
-
5
- warnings.warn(
6
- "Deprecated, please use oarepo_runtime.services.facets.enum.EnumTermsFacet",
7
- DeprecationWarning,
8
- )
9
-
10
- __all__ = ("EnumTermsFacet",)
@@ -1,10 +0,0 @@
1
- import warnings
2
-
3
- from oarepo_runtime.services.facets.max_facet import MaxFacet
4
-
5
- warnings.warn(
6
- "Deprecated, please use oarepo_runtime.services.facets.max_facet.MaxFacet",
7
- DeprecationWarning,
8
- )
9
-
10
- __all__ = ("MaxFacet",)
@@ -1,10 +0,0 @@
1
- import warnings
2
-
3
- from oarepo_runtime.services.facets.nested_facet import NestedLabeledFacet
4
-
5
- warnings.warn(
6
- "Deprecated, please use oarepo_runtime.services.facets.nested_facet.NestedLabeledFacet",
7
- DeprecationWarning,
8
- )
9
-
10
- __all__ = ("NestedLabeledFacet",)
@@ -1,10 +0,0 @@
1
- import warnings
2
-
3
- from oarepo_runtime.services.facets.params import FilteredFacetsParam
4
-
5
- warnings.warn(
6
- "Deprecated, please use oarepo_runtime.services.facets.params.FilteredFacetsParam",
7
- DeprecationWarning,
8
- )
9
-
10
- __all__ = ("FilteredFacetsParam",)
@@ -1,10 +0,0 @@
1
- import warnings
2
-
3
- from oarepo_runtime.records.dumpers.multilingual_dumper import MultilingualDumper
4
-
5
- warnings.warn(
6
- "Deprecated, please use oarepo_runtime.records.dumpers.multilingual_dumper.MultilingualDumper",
7
- DeprecationWarning,
8
- )
9
-
10
- __all__ = ("MultilingualDumper",)
@@ -1,10 +0,0 @@
1
- import warnings
2
-
3
- from oarepo_runtime.services.schema.i18n import I18nStrField, MultilingualField
4
-
5
- warnings.warn(
6
- "Deprecated, please use oarepo_runtime.services.schema.i18n",
7
- DeprecationWarning,
8
- )
9
-
10
- __all__ = ("MultilingualField", "I18nStrField")
@@ -1,20 +0,0 @@
1
- import warnings
2
-
3
- from oarepo_runtime.services.schema.i18n_ui import (
4
- I18nStrLocalizedUIField,
5
- I18nStrUIField,
6
- MultilingualLocalizedUIField,
7
- MultilingualUIField,
8
- )
9
-
10
- warnings.warn(
11
- "Deprecated, please use oarepo_runtime.services.schema.i18n_ui",
12
- DeprecationWarning,
13
- )
14
-
15
- __all__ = (
16
- "MultilingualUIField",
17
- "I18nStrUIField",
18
- "MultilingualLocalizedUIField",
19
- "I18nStrLocalizedUIField",
20
- )
@@ -1,10 +0,0 @@
1
- import warnings
2
-
3
- from oarepo_runtime.services.schema.i18n_validation import lang_code_validator
4
-
5
- warnings.warn(
6
- "Deprecated, please use oarepo_runtime.services.schema.i18n_validation.lang_code_validator",
7
- DeprecationWarning,
8
- )
9
-
10
- __all__ = ("lang_code_validator",)
@@ -1,10 +0,0 @@
1
- import warnings
2
-
3
- from oarepo_runtime.services.schema.marshmallow import BaseRecordSchema
4
-
5
- warnings.warn(
6
- "Deprecated, please use oarepo_runtime.services.schema.marshmallow.BaseRecordSchema",
7
- DeprecationWarning,
8
- )
9
-
10
- __all__ = ("BaseRecordSchema",)
@@ -1,5 +0,0 @@
1
- from oarepo_runtime.records.resolvers.proxies import DraftProxy
2
-
3
- __all__ = [
4
- "DraftProxy",
5
- ]
@@ -1,26 +0,0 @@
1
- import warnings
2
-
3
- from oarepo_runtime.records.relations.base import (
4
- InvalidCheckValue,
5
- InvalidRelationValue,
6
- Relation,
7
- RelationResult,
8
- RelationsField,
9
- )
10
- from oarepo_runtime.records.relations.internal import InternalRelation
11
- from oarepo_runtime.records.relations.pid_relation import PIDRelation
12
-
13
- warnings.warn(
14
- "Deprecated, please use oarepo_runtime.records.relations",
15
- DeprecationWarning,
16
- )
17
-
18
- __all__ = (
19
- "Relation",
20
- "RelationResult",
21
- "InvalidRelationValue",
22
- "InvalidCheckValue",
23
- "RelationsField",
24
- "InternalRelation",
25
- "PIDRelation",
26
- )
@@ -1,22 +0,0 @@
1
- import warnings
2
-
3
- from oarepo_runtime.records.relations.base import (
4
- InvalidCheckValue,
5
- InvalidRelationValue,
6
- Relation,
7
- RelationResult,
8
- RelationsField,
9
- )
10
-
11
- warnings.warn(
12
- "Deprecated, please use oarepo_runtime.records.relations",
13
- DeprecationWarning,
14
- )
15
-
16
- __all__ = (
17
- "Relation",
18
- "RelationResult",
19
- "InvalidRelationValue",
20
- "InvalidCheckValue",
21
- "RelationsField",
22
- )
@@ -1,10 +0,0 @@
1
- import warnings
2
-
3
- from oarepo_runtime.services.relations.components import CachingRelationsComponent
4
-
5
- warnings.warn(
6
- "Deprecated, please use oarepo_runtime.services.relations.components.CachingRelationsComponent",
7
- DeprecationWarning,
8
- )
9
-
10
- __all__ = ("CachingRelationsComponent",)
@@ -1,13 +0,0 @@
1
- import warnings
2
-
3
- from oarepo_runtime.services.relations.errors import (
4
- InvalidRelationError,
5
- MultipleInvalidRelationErrors,
6
- )
7
-
8
- warnings.warn(
9
- "Deprecated, please use oarepo_runtime.services.relations.errors",
10
- DeprecationWarning,
11
- )
12
-
13
- __all__ = ("InvalidRelationError", "MultipleInvalidRelationErrors")
@@ -1,13 +0,0 @@
1
- import warnings
2
-
3
- from oarepo_runtime.records.relations.internal import InternalRelation, InternalResult
4
-
5
- warnings.warn(
6
- "Deprecated, please use oarepo_runtime.records.relations",
7
- DeprecationWarning,
8
- )
9
-
10
- __all__ = (
11
- "InternalResult",
12
- "InternalRelation",
13
- )
@@ -1,10 +0,0 @@
1
- import warnings
2
-
3
- from oarepo_runtime.records.relations.lookup import LookupResult, lookup_key
4
-
5
- warnings.warn(
6
- "Deprecated, please use oarepo_runtime.records.relations.lookup",
7
- DeprecationWarning,
8
- )
9
-
10
- __all__ = ("lookup_key", "LookupResult")
@@ -1,10 +0,0 @@
1
- import warnings
2
-
3
- from oarepo_runtime.services.relations.mapping import RelationsMapping
4
-
5
- warnings.warn(
6
- "Deprecated, please use oarepo_runtime.services.relations.mapping.RelationsMapping",
7
- DeprecationWarning,
8
- )
9
-
10
- __all__ = ("RelationsMapping",)
@@ -1,20 +0,0 @@
1
- import warnings
2
-
3
- from oarepo_runtime.records.relations.pid_relation import (
4
- MetadataPIDRelation,
5
- MetadataRelationResult,
6
- PIDRelation,
7
- PIDRelationResult,
8
- )
9
-
10
- warnings.warn(
11
- "Deprecated, please use oarepo_runtime.records.relations",
12
- DeprecationWarning,
13
- )
14
-
15
- __all__ = (
16
- "PIDRelation",
17
- "PIDRelationResult",
18
- "MetadataPIDRelation",
19
- "MetadataRelationResult",
20
- )
@@ -1,12 +0,0 @@
1
- import warnings
2
-
3
- from oarepo_runtime.uow import CachingUnitOfWork
4
-
5
- # moved to oarepo_runtime.uow, kept here for backward compatibility
6
-
7
- warnings.warn(
8
- "Deprecated, please use oarepo_runtime.uow.CachingUnitOfWork",
9
- DeprecationWarning,
10
- )
11
-
12
- __all__ = ["CachingUnitOfWork"]
@@ -1,5 +0,0 @@
1
- from oarepo_runtime.resolvers.proxies import DraftProxy
2
-
3
- __all__ = [
4
- "DraftProxy",
5
- ]
@@ -1,10 +0,0 @@
1
- import warnings
2
-
3
- from oarepo_runtime.records.resolvers.proxies import DraftProxy
4
-
5
- warnings.warn(
6
- "Deprecated, please use oarepo_runtime.records.resolvers.proxies.DraftProxy",
7
- DeprecationWarning,
8
- )
9
-
10
- __all__ = ("DraftProxy",)
File without changes
@@ -1,34 +0,0 @@
1
- import warnings
2
-
3
- from oarepo_runtime.services.schema.ui import (
4
- FormatTimeString,
5
- InvenioUISchema,
6
- LocalizedDate,
7
- LocalizedDateTime,
8
- LocalizedEDTF,
9
- LocalizedEDTFInterval,
10
- LocalizedEnum,
11
- LocalizedMixin,
12
- LocalizedTime,
13
- MultilayerFormatEDTF,
14
- PrefixedGettextField,
15
- )
16
-
17
- warnings.warn(
18
- "Deprecated, please use oarepo_runtime.services.schema.ui",
19
- DeprecationWarning,
20
- )
21
-
22
- __all__ = (
23
- "InvenioUISchema",
24
- "LocalizedEnum",
25
- "PrefixedGettextField",
26
- "LocalizedEDTFInterval",
27
- "LocalizedEDTF",
28
- "LocalizedTime",
29
- "LocalizedDateTime",
30
- "MultilayerFormatEDTF",
31
- "FormatTimeString",
32
- "LocalizedDate",
33
- "LocalizedMixin",
34
- )
File without changes
File without changes
File without changes