Skip to content

Commit

Permalink
Remove usage of skins script
Browse files Browse the repository at this point in the history
  • Loading branch information
jensens committed May 16, 2024
1 parent cc77865 commit 287744e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plone/app/content/browser/selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,12 @@ def get_selectable_items(self):
view_types = registry.get("plone.types_use_view_action_in_listings", [])
default_page_types = registry.get("plone.default_page_types", [])
portal_types = getToolByName(self.context, "portal_types")
portal_catalog = getToolByName(self.context, "portal_catalog")

results = []
for brain in context.getFolderContents():
for brain in portal_catalog(
path={"query": "/".join(context.getPhysicalPath()), "depth": 1}
):
portal_type = brain.portal_type
if portal_type in view_types:
# Skip files and images
Expand Down

0 comments on commit 287744e

Please sign in to comment.