src/pyams_content/shared/news/__init__.py
changeset 266 16ff75a093d8
parent 139 99a481dc4c89
child 353 4839285629d1
equal deleted inserted replaced
265:4ac7ac893ff8 266:16ff75a093d8
    14 
    14 
    15 
    15 
    16 # import standard library
    16 # import standard library
    17 
    17 
    18 # import interfaces
    18 # import interfaces
    19 from pyams_content.component.extfile.interfaces import IExtFileContainerTarget
       
    20 from pyams_content.component.links.interfaces import ILinkContainerTarget
       
    21 from pyams_content.component.paragraph.interfaces import IParagraphContainerTarget
    19 from pyams_content.component.paragraph.interfaces import IParagraphContainerTarget
    22 from pyams_content.component.theme.interfaces import IThemesTarget
    20 from pyams_content.component.theme.interfaces import IThemesTarget
       
    21 from pyams_content.features.preview.interfaces import IPreviewTarget
       
    22 from pyams_content.features.review.interfaces import IReviewTarget
    23 from pyams_content.shared.news.interfaces import INewsEvent, IWfNewsEvent, NEWS_CONTENT_TYPE, NEWS_CONTENT_NAME
    23 from pyams_content.shared.news.interfaces import INewsEvent, IWfNewsEvent, NEWS_CONTENT_TYPE, NEWS_CONTENT_NAME
    24 
    24 
    25 # import packages
    25 # import packages
    26 from pyams_content.shared.common import SharedContent, WfSharedContent, register_content_type
    26 from pyams_content.shared.common import SharedContent, WfSharedContent, register_content_type
    27 from zope.interface import implementer
    27 from zope.interface import implementer
    28 
    28 
    29 
    29 
    30 @implementer(IWfNewsEvent, IParagraphContainerTarget, IThemesTarget)
    30 @implementer(IWfNewsEvent, IParagraphContainerTarget, IThemesTarget,
       
    31              IPreviewTarget, IReviewTarget)
    31 class WfNewsEvent(WfSharedContent):
    32 class WfNewsEvent(WfSharedContent):
    32     """Base news event"""
    33     """Base news event"""
    33 
    34 
    34     content_type = NEWS_CONTENT_TYPE
    35     content_type = NEWS_CONTENT_TYPE
    35     content_name = NEWS_CONTENT_NAME
    36     content_name = NEWS_CONTENT_NAME