From a7ee62493a8dd837a821b94e7b2c88fd04917bc3 Mon Sep 17 00:00:00 2001 From: Maurits van Rees Date: Fri, 17 May 2024 21:47:57 +0200 Subject: [PATCH] Define icons view in minimal main template. Otherwise in the overview-controlpanel pn Plone 6 you get: NameError: name 'icons' is not defined With the new line, on Plone 5 the iconresolver view won't be found, so `icons` will be None. This is fine because icons is not used on Plone 5. --- src/euphorie/content/browser/templates/minimal_main_template.pt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/euphorie/content/browser/templates/minimal_main_template.pt b/src/euphorie/content/browser/templates/minimal_main_template.pt index 5b30da360..c8cb04a6a 100644 --- a/src/euphorie/content/browser/templates/minimal_main_template.pt +++ b/src/euphorie/content/browser/templates/minimal_main_template.pt @@ -9,6 +9,7 @@ tal:define=" portal_state context/@@plone_portal_state; context_state context/@@plone_context_state; + icons python:context.restrictedTraverse('@@iconresolver', None); plone_view context/@@plone; plone_layout context/@@plone_layout; lang portal_state/language;