# HG changeset patch # User Thierry Florac # Date 1498637787 -7200 # Node ID 24c6db8d13f1e619f42aabe10061d52473026022 # Parent f9daa4fe49cebdda3af740f700ee101785f44f63 Added label to portlet renderers diff -r f9daa4fe49ce -r 24c6db8d13f1 src/pyams_portal/portlets/content/__init__.py --- a/src/pyams_portal/portlets/content/__init__.py Wed Jun 28 10:15:38 2017 +0200 +++ b/src/pyams_portal/portlets/content/__init__.py Wed Jun 28 10:16:27 2017 +0200 @@ -52,3 +52,5 @@ @template_config(template='content.pt', layer=IPyAMSLayer) class ContentPortletRenderer(PortletRenderer): """Content portlet renderer""" + + label = _("Default content renderer") diff -r f9daa4fe49ce -r 24c6db8d13f1 src/pyams_portal/portlets/content/content.pt --- a/src/pyams_portal/portlets/content/content.pt Wed Jun 28 10:15:38 2017 +0200 +++ b/src/pyams_portal/portlets/content/content.pt Wed Jun 28 10:16:27 2017 +0200 @@ -1,1 +1,1 @@ -

This is my context!!!

+

This is my context !!!

diff -r f9daa4fe49ce -r 24c6db8d13f1 src/pyams_portal/portlets/image/__init__.py --- a/src/pyams_portal/portlets/image/__init__.py Wed Jun 28 10:15:38 2017 +0200 +++ b/src/pyams_portal/portlets/image/__init__.py Wed Jun 28 10:16:27 2017 +0200 @@ -70,9 +70,4 @@ class ImagePortletRenderer(PortletRenderer): """Image portlet renderer""" - @property - def slot_configuration(self): - template = IPortalPage(self.context).template - config = IPortalTemplateConfiguration(template) - slot_id, slot_name = config.get_portlet_slot(self.settings.configuration.portlet_id) - return config.get_slot_configuration(slot_name) + label = _("Responsive image renderer") diff -r f9daa4fe49ce -r 24c6db8d13f1 src/pyams_portal/portlets/image/interfaces.py --- a/src/pyams_portal/portlets/image/interfaces.py Wed Jun 28 10:15:38 2017 +0200 +++ b/src/pyams_portal/portlets/image/interfaces.py Wed Jun 28 10:16:27 2017 +0200 @@ -16,10 +16,10 @@ # import standard library # import interfaces -from pyams_file.schema import ImageField from pyams_portal.interfaces import IPortletSettings # import packages +from pyams_file.schema import ImageField from pyams_portal import _