oarepo-runtime 1.4.14__tar.gz → 1.4.15__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. {oarepo-runtime-1.4.14/oarepo_runtime.egg-info → oarepo-runtime-1.4.15}/PKG-INFO +1 -1
  2. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/cf/__init__.py +1 -1
  3. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/cf/mappings.py +1 -1
  4. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/facets/base.py +3 -0
  5. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/facets/date.py +14 -11
  6. oarepo-runtime-1.4.15/oarepo_runtime/records/__init__.py +1 -0
  7. oarepo-runtime-1.4.15/oarepo_runtime/records/systemfields/__init__.py +10 -0
  8. {oarepo-runtime-1.4.14/oarepo_runtime/records → oarepo-runtime-1.4.15/oarepo_runtime/records/systemfields}/icu.py +1 -1
  9. oarepo-runtime-1.4.15/oarepo_runtime/resources/__init__.py +3 -0
  10. oarepo-runtime-1.4.15/oarepo_runtime/services/schema/__init__.py +3 -0
  11. oarepo-runtime-1.4.14/oarepo_runtime/ui/marshmallow.py → oarepo-runtime-1.4.15/oarepo_runtime/services/schema/ui.py +32 -24
  12. oarepo-runtime-1.4.14/oarepo_runtime/services/icu.py → oarepo-runtime-1.4.15/oarepo_runtime/services/search.py +1 -1
  13. oarepo-runtime-1.4.15/oarepo_runtime/ui/marshmallow.py +9 -0
  14. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15/oarepo_runtime.egg-info}/PKG-INFO +1 -1
  15. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime.egg-info/SOURCES.txt +10 -8
  16. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime.egg-info/entry_points.txt +1 -1
  17. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/setup.cfg +2 -2
  18. oarepo-runtime-1.4.14/oarepo_runtime/utils/__init__.py +0 -0
  19. oarepo-runtime-1.4.14/oarepo_runtime/validation/__init__.py +0 -3
  20. oarepo-runtime-1.4.14/tests/pkg_data/__init__.py +0 -0
  21. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/LICENSE +0 -0
  22. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/MANIFEST.in +0 -0
  23. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/README.md +0 -0
  24. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/__init__.py +0 -0
  25. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/cf/cli.py +0 -0
  26. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/cli/__init__.py +0 -0
  27. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/cli/assets.py +0 -0
  28. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/cli/base.py +0 -0
  29. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/cli/check.py +0 -0
  30. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/cli/index.py +0 -0
  31. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/cli/validate.py +0 -0
  32. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/config/__init__.py +0 -0
  33. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/config/permissions_presets.py +0 -0
  34. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/config/service.py +0 -0
  35. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/datastreams/__init__.py +0 -0
  36. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/datastreams/batch.py +0 -0
  37. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/datastreams/catalogue.py +0 -0
  38. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/datastreams/cli.py +0 -0
  39. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/datastreams/config.py +0 -0
  40. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/datastreams/datastreams.py +0 -0
  41. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/datastreams/errors.py +0 -0
  42. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/datastreams/fixtures.py +0 -0
  43. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/datastreams/readers/__init__.py +0 -0
  44. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/datastreams/readers/attachments.py +0 -0
  45. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/datastreams/readers/excel.py +0 -0
  46. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/datastreams/readers/json.py +0 -0
  47. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/datastreams/readers/service.py +0 -0
  48. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/datastreams/readers/yaml.py +0 -0
  49. /oarepo-runtime-1.4.14/oarepo_runtime/tasks/datastreams.py → /oarepo-runtime-1.4.15/oarepo_runtime/datastreams/tasks.py +0 -0
  50. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/datastreams/transformers.py +0 -0
  51. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/datastreams/utils.py +0 -0
  52. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/datastreams/writers/__init__.py +0 -0
  53. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/datastreams/writers/attachment.py +0 -0
  54. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/datastreams/writers/service.py +0 -0
  55. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/datastreams/writers/validation_errors.py +0 -0
  56. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/datastreams/writers/yaml.py +0 -0
  57. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/drafts/__init__.py +0 -0
  58. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/drafts/systemfields/__init__.py +0 -0
  59. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/drafts/systemfields/has_draftcheck.py +0 -0
  60. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/expansions/__init__.py +0 -0
  61. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/expansions/expandable_fields.py +0 -0
  62. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/expansions/service.py +0 -0
  63. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/ext.py +0 -0
  64. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/ext_config.py +0 -0
  65. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/facets/__init__.py +0 -0
  66. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/facets/enum.py +0 -0
  67. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/facets/max_facet.py +0 -0
  68. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/facets/nested_facet.py +0 -0
  69. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/facets/params.py +0 -0
  70. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/i18n/__init__.py +0 -0
  71. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/i18n/default_translations.py +0 -0
  72. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/i18n/dumper.py +0 -0
  73. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/i18n/schema.py +0 -0
  74. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/i18n/ui_schema.py +0 -0
  75. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/i18n/validation.py +0 -0
  76. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/marshmallow.py +0 -0
  77. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/profile.py +0 -0
  78. /oarepo-runtime-1.4.14/oarepo_runtime/records/__init__.py → /oarepo-runtime-1.4.15/oarepo_runtime/records/systemfields/mapping.py +0 -0
  79. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/relations/__init__.py +0 -0
  80. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/relations/base.py +0 -0
  81. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/relations/components.py +0 -0
  82. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/relations/errors.py +0 -0
  83. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/relations/internal.py +0 -0
  84. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/relations/lookup.py +0 -0
  85. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/relations/mapping.py +0 -0
  86. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/relations/pid_relation.py +0 -0
  87. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/relations/uow.py +0 -0
  88. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/resolvers/__init__.py +0 -0
  89. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/resolvers/proxies.py +0 -0
  90. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/resources/localized_ui_json_serializer.py +0 -0
  91. {oarepo-runtime-1.4.14/oarepo_runtime/resources → oarepo-runtime-1.4.15/oarepo_runtime/services}/__init__.py +0 -0
  92. {oarepo-runtime-1.4.14/oarepo_runtime/services → oarepo-runtime-1.4.15/oarepo_runtime/services/schema}/cf.py +0 -0
  93. {oarepo-runtime-1.4.14/oarepo_runtime → oarepo-runtime-1.4.15/oarepo_runtime/services/schema}/polymorphic.py +0 -0
  94. /oarepo-runtime-1.4.14/oarepo_runtime/validation/dates.py → /oarepo-runtime-1.4.15/oarepo_runtime/services/schema/validation.py +0 -0
  95. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/translations/cs/LC_MESSAGES/messages.mo +0 -0
  96. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/translations/cs/LC_MESSAGES/messages.po +0 -0
  97. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/translations/en/LC_MESSAGES/messages.po +0 -0
  98. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/translations/messages.pot +0 -0
  99. {oarepo-runtime-1.4.14/oarepo_runtime/services → oarepo-runtime-1.4.15/oarepo_runtime/ui}/__init__.py +0 -0
  100. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/uow.py +0 -0
  101. {oarepo-runtime-1.4.14/oarepo_runtime/tasks → oarepo-runtime-1.4.15/oarepo_runtime/utils}/__init__.py +0 -0
  102. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime/utils/path.py +0 -0
  103. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime.egg-info/dependency_links.txt +0 -0
  104. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime.egg-info/requires.txt +0 -0
  105. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/oarepo_runtime.egg-info/top_level.txt +0 -0
  106. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/pyproject.toml +0 -0
  107. {oarepo-runtime-1.4.14 → oarepo-runtime-1.4.15}/setup.py +0 -0
  108. {oarepo-runtime-1.4.14/oarepo_runtime/ui → oarepo-runtime-1.4.15/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.14
3
+ Version: 1.4.15
4
4
  Summary: A set of runtime extensions of Invenio repository
5
5
  Description-Content-Type: text/markdown
6
6
  License-File: LICENSE
@@ -4,7 +4,7 @@ from flask import current_app
4
4
  from invenio_records.systemfields import DictField, SystemField
5
5
  from invenio_records_resources.services.custom_fields import BaseCF
6
6
 
7
- from oarepo_runtime.records import MappingSystemFieldMixin
7
+ from oarepo_runtime.records.systemfields.mapping import MappingSystemFieldMixin
8
8
 
9
9
 
10
10
  class CustomFieldsMixin(MappingSystemFieldMixin):
@@ -13,7 +13,7 @@ from invenio_search import current_search_client
13
13
  from invenio_search.engine import dsl, search
14
14
  from invenio_search.utils import build_alias_name
15
15
 
16
- from oarepo_runtime.records import MappingSystemFieldMixin
16
+ from oarepo_runtime.records.systemfields.mapping import MappingSystemFieldMixin
17
17
 
18
18
 
19
19
  class Mapping(InvenioMapping):
@@ -5,5 +5,8 @@ class LabelledValuesTermsFacet(TermsFacet):
5
5
  def __init__(self, *args, **kwargs):
6
6
  super().__init__(*args, **{"value_labels": self.value_labels, **kwargs})
7
7
 
8
+ def localized_value_labels(self, values, locale):
9
+ return {val: val for val in values}
10
+
8
11
  def value_labels(self, values):
9
12
  return {val: val for val in values}
@@ -3,7 +3,7 @@ import re
3
3
  from invenio_records_resources.services.records.facets.facets import LabelledFacetMixin
4
4
  from invenio_search.engine import dsl
5
5
 
6
- from oarepo_runtime.ui.marshmallow import (
6
+ from oarepo_runtime.services.schema.ui import (
7
7
  LocalizedDate,
8
8
  LocalizedDateTime,
9
9
  LocalizedEDTF,
@@ -15,24 +15,27 @@ from .base import LabelledValuesTermsFacet
15
15
 
16
16
 
17
17
  class DateFacet(LabelledValuesTermsFacet):
18
- def value_labels(self, values):
19
- return {val: LocalizedDate().format_value(val) for val in values}
18
+ def localized_value_labels(self, values, locale):
19
+ return {val: LocalizedDate(locale=locale).format_value(val) for val in values}
20
20
 
21
21
 
22
22
  class TimeFacet(LabelledValuesTermsFacet):
23
- def value_labels(self, values):
24
- return {val: LocalizedTime().format_value(val) for val in values}
23
+ def localized_value_labels(self, values, locale):
24
+ return {val: LocalizedTime(locale=locale).format_value(val) for val in values}
25
25
 
26
26
 
27
27
  class DateTimeFacet(LabelledValuesTermsFacet):
28
- def value_labels(self, values):
29
- return {val: LocalizedDateTime().format_value(val) for val in values}
28
+ def localized_value_labels(self, values, locale):
29
+ return {
30
+ val: LocalizedDateTime(locale=locale).format_value(val) for val in values
31
+ }
30
32
 
31
33
 
32
34
  class EDTFFacet(LabelledValuesTermsFacet):
33
- def value_labels(self, values):
35
+ def localized_value_labels(self, values, locale):
34
36
  return {
35
- val: LocalizedEDTF().format_value(convert_to_edtf(val)) for val in values
37
+ val: LocalizedEDTF(locale=locale).format_value(convert_to_edtf(val))
38
+ for val in values
36
39
  }
37
40
 
38
41
 
@@ -51,9 +54,9 @@ class EDTFIntervalFacet(LabelledFacetMixin, AutoDateHistogramFacet):
51
54
  # kwargs["interval"] = "year"
52
55
  super().__init__(*args, **kwargs)
53
56
 
54
- def value_labels(self, values):
57
+ def localized_value_labels(self, values, locale):
55
58
  return {
56
- val: LocalizedEDTFInterval().format_value(convert_to_edtf(val))
59
+ val: LocalizedEDTFInterval(locale=locale).format_value(convert_to_edtf(val))
57
60
  for val in values
58
61
  }
59
62
 
@@ -0,0 +1,10 @@
1
+ from .icu import ICUField, ICUSuggestField, ICUSortField
2
+ from .mapping import MappingSystemFieldMixin, SystemFieldDumperExt
3
+
4
+ __all__ = (
5
+ "ICUField",
6
+ "ICUSuggestField",
7
+ "ICUSortField",
8
+ "MappingSystemFieldMixin",
9
+ "SystemFieldDumperExt",
10
+ )
@@ -4,7 +4,7 @@ from typing import Dict
4
4
  from flask import current_app
5
5
  from invenio_records.systemfields import SystemField
6
6
 
7
- from oarepo_runtime.records import MappingSystemFieldMixin
7
+ from oarepo_runtime.records.systemfields.mapping import MappingSystemFieldMixin
8
8
  from oarepo_runtime.relations.lookup import lookup_key
9
9
 
10
10
 
@@ -0,0 +1,3 @@
1
+ from .localized_ui_json_serializer import LocalizedUIJSONSerializer
2
+
3
+ __all__ = ("LocalizedUIJSONSerializer",)
@@ -0,0 +1,3 @@
1
+ from .polymorphic import PolymorphicSchema
2
+
3
+ __all__ = ("PolymorphicSchema",)
@@ -24,11 +24,23 @@ def current_default_locale():
24
24
  return "en"
25
25
 
26
26
 
27
- # localized date field
28
- class LocalizedDate(FormatDate):
27
+ class LocalizedMixin:
28
+ def __init__(self, *args, locale=None, **kwargs):
29
+ super().__init__(*args, locale=locale, **kwargs)
30
+
29
31
  @property
30
32
  def locale(self):
31
- return self.context["locale"]
33
+ if self._locale:
34
+ return self._locale
35
+ if self.parent:
36
+ if "locale" in self.context:
37
+ return self.context["locale"]
38
+ return current_default_locale()
39
+
40
+
41
+ # localized date field
42
+ class LocalizedDate(LocalizedMixin, FormatDate):
43
+ pass
32
44
 
33
45
 
34
46
  class FormatTimeString(FormatTime):
@@ -56,29 +68,27 @@ class MultilayerFormatEDTF(BabelFormatField):
56
68
  except:
57
69
  return format_edtf(value, format=self._format, locale=self.locale)
58
70
 
71
+ def parse(self, value, **kwargs):
72
+ # standard parsing is too lenient, for example returns "2000-01-01" for input "2000"
73
+ if re.match("^[0-9]+-[0-9]+-[0-9]+", value):
74
+ return super().parse(value, **kwargs)
75
+ raise ValueError("Not a valid date")
59
76
 
60
- class LocalizedEDTF(MultilayerFormatEDTF):
61
- @property
62
- def locale(self):
63
- return self.context["locale"]
64
77
 
78
+ class LocalizedDateTime(LocalizedMixin, FormatDatetime):
79
+ pass
65
80
 
66
- class LocalizedTime(FormatTimeString):
67
- @property
68
- def locale(self):
69
- return self.context["locale"]
70
81
 
82
+ class LocalizedTime(LocalizedMixin, FormatTimeString):
83
+ pass
71
84
 
72
- class LocalizedDateTime(FormatDatetime):
73
- @property
74
- def locale(self):
75
- return self.context["locale"]
76
85
 
86
+ class LocalizedEDTF(LocalizedMixin, MultilayerFormatEDTF):
87
+ pass
77
88
 
78
- class LocalizedEDTFInterval(FormatEDTF):
79
- @property
80
- def locale(self):
81
- return self.context["locale"]
89
+
90
+ class LocalizedEDTFInterval(LocalizedMixin, FormatEDTF):
91
+ pass
82
92
 
83
93
 
84
94
  class PrefixedGettextField(BabelGettextDictField):
@@ -92,13 +102,11 @@ class PrefixedGettextField(BabelGettextDictField):
92
102
  return gettext(value)
93
103
 
94
104
 
95
- class LocalizedEnum(PrefixedGettextField):
96
- @property
97
- def locale(self):
98
- return self.context["locale"]
105
+ class LocalizedEnum(LocalizedMixin, PrefixedGettextField):
106
+ pass
99
107
 
100
108
  def __init__(self, **kwargs):
101
- super().__init__(locale=None, default_locale=current_default_locale, **kwargs)
109
+ super().__init__(default_locale=current_default_locale, **kwargs)
102
110
 
103
111
 
104
112
  if False: # NOSONAR
@@ -10,7 +10,7 @@ from invenio_records_resources.services.records import (
10
10
  )
11
11
  from invenio_records_resources.services.records.queryparser import SuggestQueryParser
12
12
 
13
- from oarepo_runtime.records.icu import ICUSuggestField
13
+ from oarepo_runtime.records.systemfields.icu import ICUSuggestField
14
14
 
15
15
  try:
16
16
  from invenio_i18n import get_locale
@@ -0,0 +1,9 @@
1
+ from oarepo_runtime.services.schema.ui import InvenioUISchema
2
+ import warnings
3
+
4
+ warnings.warn(
5
+ "Deprecated, please use oarepo_runtime.services.schema.ui.InvenioUISchema",
6
+ DeprecationWarning,
7
+ )
8
+
9
+ __all__ = ("InvenioUISchema",)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: oarepo-runtime
3
- Version: 1.4.14
3
+ Version: 1.4.15
4
4
  Summary: A set of runtime extensions of Invenio repository
5
5
  Description-Content-Type: text/markdown
6
6
  License-File: LICENSE
@@ -8,7 +8,6 @@ oarepo_runtime/__init__.py
8
8
  oarepo_runtime/ext.py
9
9
  oarepo_runtime/ext_config.py
10
10
  oarepo_runtime/marshmallow.py
11
- oarepo_runtime/polymorphic.py
12
11
  oarepo_runtime/profile.py
13
12
  oarepo_runtime/uow.py
14
13
  oarepo_runtime.egg-info/PKG-INFO
@@ -37,6 +36,7 @@ oarepo_runtime/datastreams/config.py
37
36
  oarepo_runtime/datastreams/datastreams.py
38
37
  oarepo_runtime/datastreams/errors.py
39
38
  oarepo_runtime/datastreams/fixtures.py
39
+ oarepo_runtime/datastreams/tasks.py
40
40
  oarepo_runtime/datastreams/transformers.py
41
41
  oarepo_runtime/datastreams/utils.py
42
42
  oarepo_runtime/datastreams/readers/__init__.py
@@ -70,7 +70,9 @@ oarepo_runtime/i18n/schema.py
70
70
  oarepo_runtime/i18n/ui_schema.py
71
71
  oarepo_runtime/i18n/validation.py
72
72
  oarepo_runtime/records/__init__.py
73
- oarepo_runtime/records/icu.py
73
+ oarepo_runtime/records/systemfields/__init__.py
74
+ oarepo_runtime/records/systemfields/icu.py
75
+ oarepo_runtime/records/systemfields/mapping.py
74
76
  oarepo_runtime/relations/__init__.py
75
77
  oarepo_runtime/relations/base.py
76
78
  oarepo_runtime/relations/components.py
@@ -85,10 +87,12 @@ oarepo_runtime/resolvers/proxies.py
85
87
  oarepo_runtime/resources/__init__.py
86
88
  oarepo_runtime/resources/localized_ui_json_serializer.py
87
89
  oarepo_runtime/services/__init__.py
88
- oarepo_runtime/services/cf.py
89
- oarepo_runtime/services/icu.py
90
- oarepo_runtime/tasks/__init__.py
91
- oarepo_runtime/tasks/datastreams.py
90
+ oarepo_runtime/services/search.py
91
+ oarepo_runtime/services/schema/__init__.py
92
+ oarepo_runtime/services/schema/cf.py
93
+ oarepo_runtime/services/schema/polymorphic.py
94
+ oarepo_runtime/services/schema/ui.py
95
+ oarepo_runtime/services/schema/validation.py
92
96
  oarepo_runtime/translations/messages.pot
93
97
  oarepo_runtime/translations/cs/LC_MESSAGES/messages.mo
94
98
  oarepo_runtime/translations/cs/LC_MESSAGES/messages.po
@@ -97,6 +101,4 @@ oarepo_runtime/ui/__init__.py
97
101
  oarepo_runtime/ui/marshmallow.py
98
102
  oarepo_runtime/utils/__init__.py
99
103
  oarepo_runtime/utils/path.py
100
- oarepo_runtime/validation/__init__.py
101
- oarepo_runtime/validation/dates.py
102
104
  tests/pkg_data/__init__.py
@@ -5,4 +5,4 @@ oarepo_runtime = oarepo_runtime.ext:OARepoRuntime
5
5
  oarepo_runtime = oarepo_runtime.ext:OARepoRuntime
6
6
 
7
7
  [invenio_celery.tasks]
8
- oarepo_runtime_datastreams = oarepo_runtime.tasks.datastreams
8
+ oarepo_runtime_datastreams = oarepo_runtime.datastreams.tasks
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = oarepo-runtime
3
- version = 1.4.14
3
+ version = 1.4.15
4
4
  description = A set of runtime extensions of Invenio repository
5
5
  authors = Alzbeta Pokorna
6
6
  readme = README.md
@@ -59,7 +59,7 @@ invenio_base.apps =
59
59
  invenio_base.api_apps =
60
60
  oarepo_runtime = oarepo_runtime.ext:OARepoRuntime
61
61
  invenio_celery.tasks =
62
- oarepo_runtime_datastreams = oarepo_runtime.tasks.datastreams
62
+ oarepo_runtime_datastreams = oarepo_runtime.datastreams.tasks
63
63
 
64
64
  [egg_info]
65
65
  tag_build =
File without changes
@@ -1,3 +0,0 @@
1
- from .dates import CachedMultilayerEDTFValidator, validate_date, validate_datetime
2
-
3
- __all__ = ["validate_date", "validate_datetime", "CachedMultilayerEDTFValidator"]
File without changes
File without changes