src/pyams_content/shared/logo/paragraph.py
changeset 555 8e8a14452567
parent 438 117089568313
child 586 28445044f6e3
equal deleted inserted replaced
554:120ce09ade94 555:8e8a14452567
    15 
    15 
    16 # import standard library
    16 # import standard library
    17 
    17 
    18 # import interfaces
    18 # import interfaces
    19 from pyams_content.features.checker.interfaces import IContentChecker, MISSING_VALUE, MISSING_LANG_VALUE, ERROR_VALUE
    19 from pyams_content.features.checker.interfaces import IContentChecker, MISSING_VALUE, MISSING_LANG_VALUE, ERROR_VALUE
       
    20 from pyams_content.features.renderer.interfaces import IContentRenderer
    20 from pyams_content.shared.logo.interfaces import ILogosParagraph, LOGOS_PARAGRAPH_TYPE, LOGOS_PARAGRAPH_RENDERERS
    21 from pyams_content.shared.logo.interfaces import ILogosParagraph, LOGOS_PARAGRAPH_TYPE, LOGOS_PARAGRAPH_RENDERERS
    21 from pyams_i18n.interfaces import II18nManager, INegotiator, II18n
    22 from pyams_i18n.interfaces import II18nManager, INegotiator, II18n
    22 from pyams_workflow.interfaces import IWorkflow, IWorkflowState
    23 from pyams_workflow.interfaces import IWorkflow, IWorkflowState
    23 
    24 
    24 # import packages
    25 # import packages
    25 from pyams_content.component.paragraph import BaseParagraph, IParagraphFactory, BaseParagraphFactory, \
    26 from pyams_content.component.paragraph import BaseParagraph, IParagraphFactory, BaseParagraphFactory, \
    26     BaseParagraphContentChecker
    27     BaseParagraphContentChecker
    27 from pyams_content.features.renderer import RenderedContentMixin, IContentRenderer
       
    28 from pyams_sequence.utility import get_reference_target
    28 from pyams_sequence.utility import get_reference_target
    29 from pyams_utils.adapter import adapter_config
    29 from pyams_utils.adapter import adapter_config
    30 from pyams_utils.registry import utility_config, get_utility
    30 from pyams_utils.registry import utility_config, get_utility
    31 from pyams_utils.request import check_request
    31 from pyams_utils.request import check_request
    32 from pyams_utils.traversing import get_parent
    32 from pyams_utils.traversing import get_parent
    37 
    37 
    38 from pyams_content import _
    38 from pyams_content import _
    39 
    39 
    40 
    40 
    41 @implementer(ILogosParagraph)
    41 @implementer(ILogosParagraph)
    42 class LogosParagraph(RenderedContentMixin, BaseParagraph):
    42 class LogosParagraph(BaseParagraph):
    43     """Logos paragraph"""
    43     """Logos paragraph"""
    44 
    44 
    45     icon_class = 'fa-th-large'
    45     icon_class = 'fa-th-large'
    46     icon_hint = _("Logos")
    46     icon_hint = _("Logos")
    47 
    47