invenio-vocabularies 3.4.1__py2.py3-none-any.whl → 3.4.2__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of invenio-vocabularies might be problematic. Click here for more details.

@@ -10,6 +10,6 @@
10
10
 
11
11
  from .ext import InvenioVocabularies
12
12
 
13
- __version__ = "3.4.1"
13
+ __version__ = "3.4.2"
14
14
 
15
15
  __all__ = ("__version__", "InvenioVocabularies")
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  #
3
- # Copyright (C) 2020-2022 CERN.
3
+ # Copyright (C) 2020-2024 CERN.
4
4
  #
5
5
  # Invenio-Vocabularies is free software; you can redistribute it and/or
6
6
  # modify it under the terms of the MIT License; see LICENSE file for more
@@ -35,6 +35,9 @@ class BaseVocabularyRelationSchema(Schema):
35
35
 
36
36
  id = SanitizedUnicode(required=True)
37
37
 
38
+ # Nested field type for administration UI form generation
39
+ administration_schema_type = "vocabulary"
40
+
38
41
 
39
42
  class VocabularyRelationSchema(BaseVocabularyRelationSchema):
40
43
  """Vocabulary relation schema."""
@@ -63,6 +66,9 @@ class ContribVocabularyRelationSchema(Schema):
63
66
  ftf_name = None # free text field name
64
67
  parent_field_name = None
65
68
 
69
+ # Nested field type for administration UI form generation
70
+ administration_schema_type = "vocabulary"
71
+
66
72
  @validates_schema
67
73
  def validate_relation_schema(self, data, **kwargs):
68
74
  """Validates that either id either the free text field are present."""
@@ -91,6 +97,9 @@ class BaseVocabularySchema(BaseRecordSchema):
91
97
  description = i18n_strings
92
98
  icon = fields.Str(allow_none=False)
93
99
 
100
+ # Nested field type for administration UI form generation
101
+ administration_schema_type = "vocabulary"
102
+
94
103
 
95
104
  class VocabularySchema(BaseVocabularySchema):
96
105
  """Service schema for vocabulary records."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: invenio-vocabularies
3
- Version: 3.4.1
3
+ Version: 3.4.2
4
4
  Summary: "Invenio module for managing vocabularies."
5
5
  Home-page: https://github.com/inveniosoftware/invenio-vocabularies
6
6
  Author: CERN
@@ -74,6 +74,10 @@ https://invenio-vocabularies.readthedocs.io/
74
74
  Changes
75
75
  =======
76
76
 
77
+ Version v3.4.2 (released 2024-07-15)
78
+
79
+ - schema: add administration UI attributes
80
+
77
81
  Version 3.4.1 (released 2024-04-19)
78
82
 
79
83
  - funders: exclude ROR schema v2 json (#309)
@@ -1,4 +1,4 @@
1
- invenio_vocabularies/__init__.py,sha256=XQVii6AE-S9xrNhp1WfDG0rzm6QbbjbisAMnQix5Qt4,377
1
+ invenio_vocabularies/__init__.py,sha256=DyZ8XW-VBwepFEZa4nlM-sw5HiCNbVtBjjs5frgzLkk,377
2
2
  invenio_vocabularies/cli.py,sha256=Ymuy0l846eJXIA4UybunSqq7P9m2N0OdTtj6nEgd1-0,6355
3
3
  invenio_vocabularies/config.py,sha256=mLypkeVrPKZPtokvHSF-_Q7YcV4sCVONiyhGhu-34hI,3772
4
4
  invenio_vocabularies/ext.py,sha256=ukuvkhkLPBy2AITFLojLYTIUlP2qcbHNkt6ES8i1TwY,5310
@@ -165,7 +165,7 @@ invenio_vocabularies/services/components.py,sha256=d9C-24dEDM63gFm75nU-dXrrjS2zZ
165
165
  invenio_vocabularies/services/facets.py,sha256=qvdHoGSJJr90dZHSVe0-hlO1r0LtTnFVSjrt9PNuNAg,3872
166
166
  invenio_vocabularies/services/permissions.py,sha256=one3NvNFYq-q15e6xxf85OkH1bWZ5OsvJqMnNbm3Qms,696
167
167
  invenio_vocabularies/services/querystr.py,sha256=X3JHVF9B0O0iLWrnW3ok_bf_8jA-Cs_oAcYYkGOm3Uw,1829
168
- invenio_vocabularies/services/schema.py,sha256=ShnnH_ILHZGxE546J6Jsdwdeix6jLubSRomzf472DK8,4307
168
+ invenio_vocabularies/services/schema.py,sha256=-NugGVeBeD6v7obhLFQMVILKn3Dq2zGrOZETNYcMXJ4,4634
169
169
  invenio_vocabularies/services/service.py,sha256=W3wtKOttQjOr8Nkaus6m3KRuCMBqBsWUCAVv7Dj8bvM,7392
170
170
  invenio_vocabularies/services/tasks.py,sha256=zTAWdnI5celWBKrF986wQzCmkOTGOwTghtN7U5FMZ5Q,783
171
171
  invenio_vocabularies/services/custom_fields/__init__.py,sha256=QgvSsn-S1xLzbZ57pjjGTt5oI3HqzXHVjwGTtuPgzN8,421
@@ -267,10 +267,10 @@ invenio_vocabularies/translations/zh_CN/LC_MESSAGES/messages.mo,sha256=g1I5aNO8r
267
267
  invenio_vocabularies/translations/zh_CN/LC_MESSAGES/messages.po,sha256=vg8qC8ofpAdJ3mQz7mWM1ylKDpiNWXFs7rlMdSPkgKk,4629
268
268
  invenio_vocabularies/translations/zh_TW/LC_MESSAGES/messages.mo,sha256=cqSm8NtMAwrP9O6qbmtkDtRT1e9D93qpsJN5X9_PPVw,600
269
269
  invenio_vocabularies/translations/zh_TW/LC_MESSAGES/messages.po,sha256=9ACePz_EpB-LfcIJajZ2kp8Q04tcdrQLOtug162ZUss,4115
270
- invenio_vocabularies-3.4.1.dist-info/AUTHORS.rst,sha256=8d0p_WWE1r9DavvzMDi2D4YIGBHiMYcN3LYxqQOj8sY,291
271
- invenio_vocabularies-3.4.1.dist-info/LICENSE,sha256=UvI8pR8jGWqe0sTkb_hRG6eIrozzWwWzyCGEpuXX4KE,1062
272
- invenio_vocabularies-3.4.1.dist-info/METADATA,sha256=uBy7poGYcqlln0zyJcfHFu_wsECKRyt9E-jcmzOlWA4,6627
273
- invenio_vocabularies-3.4.1.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
274
- invenio_vocabularies-3.4.1.dist-info/entry_points.txt,sha256=Cca3c5XGXkQItZ2-1oeN5xffwM8I1J3XjSvdq9-l_Bw,2497
275
- invenio_vocabularies-3.4.1.dist-info/top_level.txt,sha256=x1gRNbaODF_bCD0SBLM3nVOFPGi06cmGX5X94WKrFKk,21
276
- invenio_vocabularies-3.4.1.dist-info/RECORD,,
270
+ invenio_vocabularies-3.4.2.dist-info/AUTHORS.rst,sha256=8d0p_WWE1r9DavvzMDi2D4YIGBHiMYcN3LYxqQOj8sY,291
271
+ invenio_vocabularies-3.4.2.dist-info/LICENSE,sha256=UvI8pR8jGWqe0sTkb_hRG6eIrozzWwWzyCGEpuXX4KE,1062
272
+ invenio_vocabularies-3.4.2.dist-info/METADATA,sha256=Pe2SlrT5ejncfvqOLM28db9TWBasChJwAqwZWVO28tQ,6709
273
+ invenio_vocabularies-3.4.2.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
274
+ invenio_vocabularies-3.4.2.dist-info/entry_points.txt,sha256=Cca3c5XGXkQItZ2-1oeN5xffwM8I1J3XjSvdq9-l_Bw,2497
275
+ invenio_vocabularies-3.4.2.dist-info/top_level.txt,sha256=x1gRNbaODF_bCD0SBLM3nVOFPGi06cmGX5X94WKrFKk,21
276
+ invenio_vocabularies-3.4.2.dist-info/RECORD,,