src/pyams_content/component/illustration/interfaces/__init__.py
changeset 694 4541a452fd4c
parent 686 43ebbd99dd62
child 918 975dba68ebd5
equal deleted inserted replaced
693:26d51b558325 694:4541a452fd4c
    35 BASIC_ILLUSTRATION_KEY = 'pyams_content.illustration.base'
    35 BASIC_ILLUSTRATION_KEY = 'pyams_content.illustration.base'
    36 
    36 
    37 ILLUSTRATION_KEY = 'pyams_content.illustration'
    37 ILLUSTRATION_KEY = 'pyams_content.illustration'
    38 ILLUSTRATION_RENDERERS = 'PyAMS.illustration.renderers'
    38 ILLUSTRATION_RENDERERS = 'PyAMS.illustration.renderers'
    39 
    39 
       
    40 LINK_ILLUSTRATION_KEY = '{0}::link'.format(ILLUSTRATION_KEY)
       
    41 
    40 
    42 
    41 class IBasicIllustration(Interface):
    43 class IBasicIllustration(Interface):
    42     """Basic illustration interface"""
    44     """Basic illustration interface"""
    43 
    45 
    44     data = I18nThumbnailMediaField(title=_("Image or video data"),
    46     data = I18nThumbnailMediaField(title=_("Image or video data"),
    71                       description=_("Presentation template used for illustration"),
    73                       description=_("Presentation template used for illustration"),
    72                       vocabulary=ILLUSTRATION_RENDERERS,
    74                       vocabulary=ILLUSTRATION_RENDERERS,
    73                       default='default')
    75                       default='default')
    74 
    76 
    75 
    77 
       
    78 class ILinkIllustration(IBasicIllustration):
       
    79     """Navigation link illustration interface"""
       
    80 
       
    81 
    76 class IBasicIllustrationTarget(IAttributeAnnotatable):
    82 class IBasicIllustrationTarget(IAttributeAnnotatable):
    77     """Basic illustration target marker interface"""
    83     """Basic illustration target marker interface"""
    78 
    84 
    79 
    85 
    80 class IIllustrationTarget(IBasicIllustrationTarget):
    86 class IIllustrationTarget(IBasicIllustrationTarget):
    81     """Illustration target interface"""
    87     """Illustration target interface"""
    82 
    88 
       
    89 
       
    90 class ILinkIllustrationTarget(IBasicIllustrationTarget):
       
    91     """Link illustration target interface"""
       
    92 
       
    93 
       
    94 #
       
    95 # Illustration paragraph
       
    96 #
    83 
    97 
    84 ILLUSTRATION_PARAGRAPH_TYPE = 'Illustration'
    98 ILLUSTRATION_PARAGRAPH_TYPE = 'Illustration'
    85 ILLUSTRATION_PARAGRAPH_NAME = _("Illustration")
    99 ILLUSTRATION_PARAGRAPH_NAME = _("Illustration")
    86 
   100 
    87 
   101