Skip to content

Commit

Permalink
Fix breaking change in SUBFOLDERS_MAPPING in design.plone.contenttype…
Browse files Browse the repository at this point in the history
…s == 6.2.11
  • Loading branch information
cekk committed Jun 24, 2024
1 parent 255b3f4 commit b549350
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ Changelog
1.0.3 (unreleased)
------------------

- Nothing changed yet.
- Fix breaking change in SUBFOLDERS_MAPPING in design.plone.contenttypes == 6.2.11.
[cekk]


1.0.2 (2024-04-18)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
python_requires=">=3.7",
install_requires=[
"setuptools",
"design.plone.contenttypes",
"design.plone.contenttypes>=6.2.11",
"collective.monkeypatcher",
],
extras_require={
Expand Down
5 changes: 3 additions & 2 deletions src/design/plone/ctgeneric/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@


subfolders_mapping = common.SUBFOLDERS_MAPPING

persona_folders = [
x for x in subfolders_mapping["Persona"] if x["allowed_types"] != ("Incarico",)
x
for x in subfolders_mapping["Persona"].get("content", [])
if x["allowed_types"] != ("Incarico",)
]
persona_folders.extend(
[
Expand Down

0 comments on commit b549350

Please sign in to comment.