--- a/src/pyams_content/component/illustration/interfaces/__init__.py Sun Feb 11 12:11:05 2018 +0100
+++ b/src/pyams_content/component/illustration/interfaces/__init__.py Thu Feb 15 15:08:29 2018 +0100
@@ -17,12 +17,11 @@
# import interfaces
from pyams_content.component.paragraph.interfaces import IBaseParagraph
+from pyams_content.features.renderer.interfaces import IRenderedContent
from pyams_i18n.schema import I18nTextLineField, I18nTextField, I18nThumbnailMediaField
from zope.annotation.interfaces import IAttributeAnnotatable
-from zope.contentprovider.interfaces import IContentProvider
# import packages
-from zope.interface import Interface, Attribute
from zope.schema import Choice, TextLine
from pyams_content import _
@@ -35,7 +34,7 @@
ILLUSTRATION_KEY = 'pyams_content.illustration'
-class IIllustration(Interface):
+class IIllustration(IRenderedContent):
"""Illustration paragraph"""
title = I18nTextLineField(title=_("Legend"),
@@ -63,7 +62,8 @@
renderer = Choice(title=_("Illustration template"),
description=_("Presentation template used for illustration"),
- vocabulary='PyAMS illustration renderers')
+ vocabulary='PyAMS illustration renderers',
+ default='hidden')
language = Choice(title=_("Language"),
description=_("File's content language"),
@@ -75,12 +75,6 @@
"""Illustration target marker interface"""
-class IIllustrationRenderer(IContentProvider):
- """Illustration renderer utility interface"""
-
- label = Attribute("Renderer label")
-
-
class IIllustrationParagraph(IIllustration, IBaseParagraph):
"""Illustration paragraph"""