--- a/src/pyams_portal/portlet.py Thu Sep 26 11:56:07 2019 +0200
+++ b/src/pyams_portal/portlet.py Fri Oct 04 19:13:14 2019 +0200
@@ -174,12 +174,10 @@
return render('templates/portlet-hidden.pt', {}, request=self.request)
else:
result = super(PortletPreviewer, self).render()
- settings = self.settings
- if settings.renderer:
- renderer = settings.get_renderer()
- translate = self.request.localizer.translate
- result = PREVIEW_PREFIX.format(label=translate(_("Renderer:")),
- renderer=translate(renderer.label)) + result
+ renderer = self.settings.get_renderer()
+ translate = self.request.localizer.translate
+ result = PREVIEW_PREFIX.format(label=translate(_("Renderer:")),
+ renderer=translate(renderer.label)) + result
return result