src/pyams_default_theme/component/association/interfaces.py
changeset 382 f0c399c2d649
parent 319 29ffc22ece57
child 534 7d485d40eec3
equal deleted inserted replaced
381:1ab0b78f0480 382:f0c399c2d649
    11 #
    11 #
    12 
    12 
    13 __docformat__ = 'restructuredtext'
    13 __docformat__ = 'restructuredtext'
    14 
    14 
    15 from zope.interface import Interface
    15 from zope.interface import Interface
    16 from zope.schema import Bool, Set, Choice, Int
    16 from zope.schema import Bool, Choice, Int, Set
    17 
    17 
    18 from pyams_content.component.paragraph.interfaces import PARAGRAPH_FACTORIES_VOCABULARY
    18 from pyams_content.component.paragraph.interfaces import PARAGRAPH_FACTORIES_VOCABULARY
       
    19 from pyams_default_theme import _
       
    20 from pyams_utils.text import PYAMS_HTML_RENDERERS_VOCABULARY
    19 
    21 
    20 from pyams_default_theme import _
    22 
       
    23 class IAssociationParagraphDefaultRendererSettings(Interface):
       
    24     """Associations paragraph default renderer settings interface"""
       
    25 
       
    26     description_format = Choice(title=_("Description format"),
       
    27                                 description=_("Formatting style used for description in associations"),
       
    28                                 vocabulary=PYAMS_HTML_RENDERERS_VOCABULARY,
       
    29                                 required=True,
       
    30                                 default='text')
    21 
    31 
    22 
    32 
    23 class IBaseAssociationParagraphRemoteContentRendererSettings(Interface):
    33 class IBaseAssociationParagraphRemoteContentRendererSettings(Interface):
    24     """Associations paragraph remote content renderer settings interface"""
    34     """Associations paragraph remote content renderer settings interface"""
    25 
    35