Skip to content

Commit

Permalink
Fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
folix-01 committed Jun 17, 2024
1 parent 8c0bb7d commit 5b37460
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/design/plone/contenttypes/upgrades/upgrades.py
Original file line number Diff line number Diff line change
Expand Up @@ -1057,9 +1057,12 @@ def to_5800(context):
portal_types[ptype].behaviors = tuple(behaviors)

# set True to all of already created children
for (id, pt) in [("multimedia", "Document"), ("allegati", "Document"), ("luoghi", "Document")]: # ...
for id, pt in [
("multimedia", "Document"),
("allegati", "Document"),
("luoghi", "Document"),
]: # ...
brains = api.content.find(getId=id, portal_type=pt)
tot = len(brains)
for i, brain in enumerate(brains):
brain.getObject().exclude_from_search = True

Expand Down

0 comments on commit 5b37460

Please sign in to comment.