src/pyams_content/shared/logo/interfaces/__init__.py
changeset 438 117089568313
parent 407 0ef5de2d5674
child 442 5dc8421cbcfc
--- a/src/pyams_content/shared/logo/interfaces/__init__.py	Fri Mar 02 17:36:12 2018 +0100
+++ b/src/pyams_content/shared/logo/interfaces/__init__.py	Fri Mar 02 17:54:01 2018 +0100
@@ -12,16 +12,18 @@
 
 __docformat__ = 'restructuredtext'
 
+
 # import standard library
 
 # import interfaces
 from pyams_content.component.paragraph import IBaseParagraph
+from pyams_content.features.renderer.interfaces import IRenderedContent
 from pyams_content.shared.common.interfaces import ISharedTool, IWfSharedContent, ISharedContent
 
 # import packages
 from pyams_file.schema import ImageField
 from pyams_sequence.schema import InternalReferencesList
-from zope.schema import URI
+from zope.schema import URI, Choice
 
 from pyams_content import _
 
@@ -51,14 +53,20 @@
 
 
 LOGOS_PARAGRAPH_TYPE = 'Logos'
+LOGOS_PARAGRAPH_RENDERERS = 'PyAMS.shared.logos.renderers'
 
 
-class ILogosParagraph(IBaseParagraph):
+class ILogosParagraph(IRenderedContent, IBaseParagraph):
     """Logos paragraph"""
 
     references = InternalReferencesList(title=_("Logos references"),
                                         description=_("List of internal logos references"),
                                         content_type=LOGO_CONTENT_TYPE)
 
+    renderer = Choice(title=_("Gallery template"),
+                      description=_("Presentation template used for this gallery"),
+                      vocabulary=LOGOS_PARAGRAPH_RENDERERS,
+                      default='default')
+
     def get_targets(self, state=None):
         """Get references targets"""