Updated interfaces
authorThierry Florac <thierry.florac@onf.fr>
Wed, 28 Jun 2017 10:13:17 +0200
changeset 29 3002631ab3b7
parent 28 bb21e23405e8
child 30 1e3f8a25ab06
Updated interfaces
src/pyams_portal/interfaces/__init__.py
--- a/src/pyams_portal/interfaces/__init__.py	Wed Jun 07 09:55:40 2017 +0200
+++ b/src/pyams_portal/interfaces/__init__.py	Wed Jun 28 10:13:17 2017 +0200
@@ -84,6 +84,12 @@
                    required=True,
                    default=True)
 
+    renderer = Choice(title=_("Portlet renderer"),
+                      description=_("Name of renderer used to render this portlet"),
+                      vocabulary='PyAMS portlet renderers',
+                      required=False,
+                      default='')
+
 
 PORTLETS_CONFIGURATION_KEY = 'pyams_portal.portlets'
 
@@ -144,6 +150,8 @@
     a request, a view and a portlet
     """
 
+    label = Attribute("Renderer name")
+
 
 class IPortalPortletsConfiguration(IContained):
     """Portal template portlet configuration interface"""