Skip to content

Commit 68c427c

Browse files
update upgrades method
1 parent 6ce4fa3 commit 68c427c

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

CHANGES.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ Changelog
44
6.3.5 (unreleased)
55
------------------
66

7-
- Nothing changed yet.
7+
- Fix upgrade step; we can't update types due to customer customizations;
8+
we need to fix single parts of type profiles
9+
[lucabel]
810

911

1012
6.3.4 (2025-03-07)

src/design/plone/contenttypes/upgrades/to_730x.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ def update_registry(context):
2626
update_profile(context, "plone.app.registry", run_dependencies=False)
2727

2828

29-
def update_types(context):
30-
update_profile(context, "typeinfo")
31-
32-
3329
def to_7301(context):
3430
brains = api.content.find(portal_type="Persona")
3531
for brain in brains:
@@ -186,5 +182,8 @@ def to_7310(context):
186182

187183

188184
def to_7311(context):
189-
update_types(context)
185+
allowed = list(context.portal_types['Documento'].allowed_content_types)
186+
if "File" not in allowed:
187+
allowed.append("File")
188+
context.portal_types['Documento'].allowed_content_types = tuple(allowed)
190189
logger.info("Update ct documento addables")

0 commit comments

Comments
 (0)