Skip to content

Commit 605fbc2

Browse files
authored
Merge branch 'main' into fix_tipologia_notizia_criteria
2 parents f08d73a + 862fd05 commit 605fbc2

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

CHANGES.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Changelog
55
1.0.4 (unreleased)
66
------------------
77

8+
- Fix mapping for Persona.
9+
[daniele]
810
- Remove tipoligia_notizia taxonomy (from v3) and index v2 field.
911
[cekk]
1012
- Re-add tipologia_notizia criteria.

src/design/plone/ctgeneric/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
},
2525
]
2626
)
27-
subfolders_mapping["Persona"] = persona_folders
27+
28+
subfolders_mapping["Persona"] = {"allowed_types": [], "content": persona_folders}
2829

2930
common.SUBFOLDERS_MAPPING = subfolders_mapping
3031

src/design/plone/ctgeneric/tests/test_ct_event.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def test_event_fields_default_fieldset(self):
9797
"recurrence",
9898
"tassonomia_argomenti",
9999
"sottotitolo",
100-
]
100+
],
101101
# should be like this, but in tests SchemaTweaks does not work
102102
# [
103103
# "title",
@@ -148,7 +148,7 @@ def test_event_fields_correlati_fieldset(self):
148148
resp = self.api_session.get("@types/Event").json()
149149
self.assertEqual(
150150
resp["fieldsets"][7]["fields"],
151-
["correlato_in_evidenza"]
151+
["correlato_in_evidenza"],
152152
# should be like this but SchemaTweaks does not work in tests
153153
# ["correlato_in_evidenza", "relatedItems"],
154154
)
@@ -160,7 +160,7 @@ def test_event_fields_categorization_fieldset(self):
160160
resp = self.api_session.get("@types/Event").json()
161161
self.assertEqual(
162162
resp["fieldsets"][8]["fields"],
163-
["subjects", "language", "relatedItems"]
163+
["subjects", "language", "relatedItems"],
164164
# should be like this with SchemaTweaks
165165
# ["subjects", "language"],
166166
)

0 commit comments

Comments
 (0)