src/pyams_default_theme/component/association/interfaces.py
changeset 382 f0c399c2d649
parent 319 29ffc22ece57
child 534 7d485d40eec3
--- a/src/pyams_default_theme/component/association/interfaces.py	Fri Jan 18 15:29:24 2019 +0100
+++ b/src/pyams_default_theme/component/association/interfaces.py	Fri Jan 18 15:30:29 2019 +0100
@@ -13,11 +13,21 @@
 __docformat__ = 'restructuredtext'
 
 from zope.interface import Interface
-from zope.schema import Bool, Set, Choice, Int
+from zope.schema import Bool, Choice, Int, Set
 
 from pyams_content.component.paragraph.interfaces import PARAGRAPH_FACTORIES_VOCABULARY
+from pyams_default_theme import _
+from pyams_utils.text import PYAMS_HTML_RENDERERS_VOCABULARY
 
-from pyams_default_theme import _
+
+class IAssociationParagraphDefaultRendererSettings(Interface):
+    """Associations paragraph default renderer settings interface"""
+
+    description_format = Choice(title=_("Description format"),
+                                description=_("Formatting style used for description in associations"),
+                                vocabulary=PYAMS_HTML_RENDERERS_VOCABULARY,
+                                required=True,
+                                default='text')
 
 
 class IBaseAssociationParagraphRemoteContentRendererSettings(Interface):