invenio-vocabularies 4.3.0__py2.py3-none-any.whl → 4.4.0__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__ = "4.3.0"
13
+ __version__ = "4.4.0"
14
14
 
15
15
  __all__ = ("__version__", "InvenioVocabularies")
@@ -8,11 +8,13 @@
8
8
 
9
9
  """Vocabulary affiliations."""
10
10
 
11
+ from flask_resources import JSONSerializer, ResponseHandler
11
12
  from invenio_db import db
12
13
  from invenio_records.dumpers import SearchDumper
13
14
  from invenio_records.dumpers.indexedat import IndexedAtDumperExt
14
15
  from invenio_records_resources.factories.factory import RecordTypeFactory
15
16
  from invenio_records_resources.records.systemfields import ModelPIDField
17
+ from invenio_records_resources.resources.records.headers import etag_headers
16
18
 
17
19
  from ...services.permissions import PermissionPolicy
18
20
  from .config import AffiliationsSearchOptions, service_components
@@ -46,4 +48,12 @@ record_type = RecordTypeFactory(
46
48
  permission_policy_cls=PermissionPolicy,
47
49
  # Resource layer
48
50
  endpoint_route="/affiliations",
51
+ resource_cls_attrs={
52
+ "response_handlers": {
53
+ "application/json": ResponseHandler(JSONSerializer(), headers=etag_headers),
54
+ "application/vnd.inveniordm.v1+json": ResponseHandler(
55
+ JSONSerializer(), headers=etag_headers
56
+ ),
57
+ }
58
+ },
49
59
  )
@@ -8,6 +8,7 @@
8
8
 
9
9
  """Vocabulary names."""
10
10
 
11
+ from flask_resources import JSONSerializer, ResponseHandler
11
12
  from invenio_db import db
12
13
  from invenio_records.dumpers import SearchDumper
13
14
  from invenio_records.dumpers.indexedat import IndexedAtDumperExt
@@ -18,6 +19,7 @@ from invenio_records_resources.records.systemfields import (
18
19
  ModelPIDField,
19
20
  PIDListRelation,
20
21
  )
22
+ from invenio_records_resources.resources.records.headers import etag_headers
21
23
 
22
24
  from ...services.permissions import PermissionPolicy
23
25
  from ..affiliations.api import Affiliation
@@ -63,4 +65,12 @@ record_type = RecordTypeFactory(
63
65
  permission_policy_cls=PermissionPolicy,
64
66
  # Resource layer
65
67
  endpoint_route="/names",
68
+ resource_cls_attrs={
69
+ "response_handlers": {
70
+ "application/json": ResponseHandler(JSONSerializer(), headers=etag_headers),
71
+ "application/vnd.inveniordm.v1+json": ResponseHandler(
72
+ JSONSerializer(), headers=etag_headers
73
+ ),
74
+ }
75
+ },
66
76
  )
@@ -9,9 +9,11 @@
9
9
 
10
10
  """Vocabulary subjects."""
11
11
 
12
+ from flask_resources import JSONSerializer, ResponseHandler
12
13
  from invenio_records.dumpers import SearchDumper
13
14
  from invenio_records.dumpers.indexedat import IndexedAtDumperExt
14
15
  from invenio_records_resources.factories.factory import RecordTypeFactory
16
+ from invenio_records_resources.resources.records.headers import etag_headers
15
17
 
16
18
  from ...records.pidprovider import PIDProviderFactory
17
19
  from ...records.systemfields import BaseVocabularyPIDFieldContext
@@ -42,4 +44,12 @@ record_type = RecordTypeFactory(
42
44
  permission_policy_cls=PermissionPolicy,
43
45
  # Resource layer
44
46
  endpoint_route="/subjects",
47
+ resource_cls_attrs={
48
+ "response_handlers": {
49
+ "application/json": ResponseHandler(JSONSerializer(), headers=etag_headers),
50
+ "application/vnd.inveniordm.v1+json": ResponseHandler(
51
+ JSONSerializer(), headers=etag_headers
52
+ ),
53
+ }
54
+ },
45
55
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: invenio-vocabularies
3
- Version: 4.3.0
3
+ Version: 4.4.0
4
4
  Summary: "Invenio module for managing vocabularies."
5
5
  Home-page: https://github.com/inveniosoftware/invenio-vocabularies
6
6
  Author: CERN
@@ -81,6 +81,10 @@ https://invenio-vocabularies.readthedocs.io/
81
81
  Changes
82
82
  =======
83
83
 
84
+ Version v4.4.0 (released 2024-08-09)
85
+
86
+ - services: use and adjust vnd.inveniordm.v1+json http accept header
87
+
84
88
  Version v4.3.0 (released 2024-08-05)
85
89
 
86
90
  - names: make names_exclude_regex configurable
@@ -1,4 +1,4 @@
1
- invenio_vocabularies/__init__.py,sha256=GpP8zZf9DfeXzWKEY02ASOpkML4CDrc9lSTEKpJnztU,377
1
+ invenio_vocabularies/__init__.py,sha256=scEcGFp9kWsXCw3wlDVG1nWWpWSVo6szcsMw-T-RcjY,377
2
2
  invenio_vocabularies/cli.py,sha256=ToGc5dcGarDwNUgUXGqHIRT-3Uv1rleyFLKenwZdyBw,5719
3
3
  invenio_vocabularies/config.py,sha256=hhlwenD5MDajCqmz2EmS7J5hVd2QPD2v5l_MjxM_56s,5011
4
4
  invenio_vocabularies/ext.py,sha256=GujJ4UARd4Fxf4z7zznRk9JAgHamZuYCOdrKU5czg00,5987
@@ -43,7 +43,7 @@ invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/script
43
43
  invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/scripts/initCatalog.js,sha256=ghTi5iOIhT8AJoFGlxnBrHWiw2ts21dKwY_vWxmkiCE,682
44
44
  invenio_vocabularies/contrib/__init__.py,sha256=C5eDia6tAVBCrbb5hd_KnxmczyBoF87NIBUCLID-Tzc,240
45
45
  invenio_vocabularies/contrib/affiliations/__init__.py,sha256=rV8YAzBRoSKsBYcVjCNJh6j7ITuPRfurwj9HJHRjkN8,565
46
- invenio_vocabularies/contrib/affiliations/affiliations.py,sha256=Ph0z7bT_tudsWDKFaiksCBngsG-eO6Xpbe3KdejfLXI,1591
46
+ invenio_vocabularies/contrib/affiliations/affiliations.py,sha256=PCWBF9O7ba2yU3LftEt5pxJf14S-HymqnN4GqKhp-Mc,2027
47
47
  invenio_vocabularies/contrib/affiliations/api.py,sha256=5nIOvpfcseuAAg2XgblHc8jb7TAdfU79XOBRpL-p398,326
48
48
  invenio_vocabularies/contrib/affiliations/config.py,sha256=u1sHeihy0B0e6w5e3HsbrC9e8A4WTLKCYPXUdcX-ZTs,1605
49
49
  invenio_vocabularies/contrib/affiliations/datastreams.py,sha256=Mn62EBBkGwO09qjrXY71qDIrS2mNgarb89ez69Vw4Yk,2384
@@ -108,7 +108,7 @@ invenio_vocabularies/contrib/names/api.py,sha256=sEPn_jFX3gyoxgbdEUSIvOoPCUI8poc
108
108
  invenio_vocabularies/contrib/names/config.py,sha256=hKDTEEBYGYOY6sMOArZjjkq2HJ6MJtRZp1geGLAFgRg,1735
109
109
  invenio_vocabularies/contrib/names/datastreams.py,sha256=PgCUwK0qpw_r0NTA17w7eqCDhgL2xd0tIXZ9-GjOT2M,9301
110
110
  invenio_vocabularies/contrib/names/models.py,sha256=SYdtDDG-y5Wq_d06YhiVO5n8gfxPW_mx-tECsIcv5H8,308
111
- invenio_vocabularies/contrib/names/names.py,sha256=fRNZW3yTmIE3FBB8zAcTdt1CXH6O8p6Ggz_7k9e8QTk,1987
111
+ invenio_vocabularies/contrib/names/names.py,sha256=NlCyc2n7vUSGN8vA5PmgkNk8GpSF9v7OjBSBhRSQjYI,2423
112
112
  invenio_vocabularies/contrib/names/resources.py,sha256=Z8XqLKfFKE69zdTTvcTDmpEZ6wqiqjIH5tp0LzXTSwQ,1588
113
113
  invenio_vocabularies/contrib/names/s3client.py,sha256=c7B9_NbnXCfE4pE_yMTsT6uQ2hgbcRU-KY6nbWFuFzU,1063
114
114
  invenio_vocabularies/contrib/names/schema.py,sha256=eKhpNwBaACMEY0JWNrSUhr-40lXhkiHDRmM42KsLrYg,3354
@@ -130,7 +130,7 @@ invenio_vocabularies/contrib/subjects/models.py,sha256=8XgbVRxDDvhWPjMWsoCriNlOK
130
130
  invenio_vocabularies/contrib/subjects/resources.py,sha256=0KRfUMizwgIziZybk4HnIjiSsXbrCv_XmguNPwnxoo8,506
131
131
  invenio_vocabularies/contrib/subjects/schema.py,sha256=jWPhpCDoScf8fRs7T15kcXnprWw31OuGBKJUziQ3t8A,1120
132
132
  invenio_vocabularies/contrib/subjects/services.py,sha256=s1U6HMmpjuz7rrgR0DtT9C28TC6sZEeDTsa4Jh1TXQk,864
133
- invenio_vocabularies/contrib/subjects/subjects.py,sha256=y5IidPbmYV3zs5aEp7CFzijYoVwWZ5GIMwl1kD0e0Eg,1441
133
+ invenio_vocabularies/contrib/subjects/subjects.py,sha256=NwZycExLyV8l7ikGStH4GOecVuDSxFT70KoNv6qC78I,1877
134
134
  invenio_vocabularies/contrib/subjects/jsonschemas/__init__.py,sha256=WowVUST1JoEDS3-xeHhCJvIgC9nzMkFs8XRks9zgzaM,292
135
135
  invenio_vocabularies/contrib/subjects/jsonschemas/subjects/subject-v1.0.0.json,sha256=jlKAY_0oZH2zMlK8F4oNI2Xbq0ENYhHrM_w5nM9d0Fc,914
136
136
  invenio_vocabularies/contrib/subjects/mappings/__init__.py,sha256=Qk-yj1ENsTmijO8ImWuDYGzXi6QQ2VjP4DbjrpRfDk8,243
@@ -282,10 +282,10 @@ invenio_vocabularies/translations/zh_CN/LC_MESSAGES/messages.mo,sha256=g1I5aNO8r
282
282
  invenio_vocabularies/translations/zh_CN/LC_MESSAGES/messages.po,sha256=vg8qC8ofpAdJ3mQz7mWM1ylKDpiNWXFs7rlMdSPkgKk,4629
283
283
  invenio_vocabularies/translations/zh_TW/LC_MESSAGES/messages.mo,sha256=cqSm8NtMAwrP9O6qbmtkDtRT1e9D93qpsJN5X9_PPVw,600
284
284
  invenio_vocabularies/translations/zh_TW/LC_MESSAGES/messages.po,sha256=9ACePz_EpB-LfcIJajZ2kp8Q04tcdrQLOtug162ZUss,4115
285
- invenio_vocabularies-4.3.0.dist-info/AUTHORS.rst,sha256=8d0p_WWE1r9DavvzMDi2D4YIGBHiMYcN3LYxqQOj8sY,291
286
- invenio_vocabularies-4.3.0.dist-info/LICENSE,sha256=UvI8pR8jGWqe0sTkb_hRG6eIrozzWwWzyCGEpuXX4KE,1062
287
- invenio_vocabularies-4.3.0.dist-info/METADATA,sha256=MHY_zQ_1aP_8vhr6BXB7wUgxT3JxXQk_jqw4Ur9ur6U,8427
288
- invenio_vocabularies-4.3.0.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
289
- invenio_vocabularies-4.3.0.dist-info/entry_points.txt,sha256=qHHFkyU3r0COsKm5gCYuhP8tfsioBggxKAiEXNAbbjM,2803
290
- invenio_vocabularies-4.3.0.dist-info/top_level.txt,sha256=x1gRNbaODF_bCD0SBLM3nVOFPGi06cmGX5X94WKrFKk,21
291
- invenio_vocabularies-4.3.0.dist-info/RECORD,,
285
+ invenio_vocabularies-4.4.0.dist-info/AUTHORS.rst,sha256=8d0p_WWE1r9DavvzMDi2D4YIGBHiMYcN3LYxqQOj8sY,291
286
+ invenio_vocabularies-4.4.0.dist-info/LICENSE,sha256=UvI8pR8jGWqe0sTkb_hRG6eIrozzWwWzyCGEpuXX4KE,1062
287
+ invenio_vocabularies-4.4.0.dist-info/METADATA,sha256=hYz0Gy3C37wuawLdd36nJ9_RZiS130E4bhKN8tlZa9E,8535
288
+ invenio_vocabularies-4.4.0.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
289
+ invenio_vocabularies-4.4.0.dist-info/entry_points.txt,sha256=qHHFkyU3r0COsKm5gCYuhP8tfsioBggxKAiEXNAbbjM,2803
290
+ invenio_vocabularies-4.4.0.dist-info/top_level.txt,sha256=x1gRNbaODF_bCD0SBLM3nVOFPGi06cmGX5X94WKrFKk,21
291
+ invenio_vocabularies-4.4.0.dist-info/RECORD,,