equal
deleted
inserted
replaced
16 # import standard library |
16 # import standard library |
17 |
17 |
18 # import interfaces |
18 # import interfaces |
19 from pyams_content.component.illustration import IIllustrationTarget, ILinkIllustrationTarget |
19 from pyams_content.component.illustration import IIllustrationTarget, ILinkIllustrationTarget |
20 from pyams_content.component.paragraph.interfaces import IParagraphContainerTarget |
20 from pyams_content.component.paragraph.interfaces import IParagraphContainerTarget |
21 from pyams_content.component.theme.interfaces import IThemesTarget |
21 from pyams_content.component.theme.interfaces import ITagsTarget, IThemesTarget |
22 from pyams_content.features.preview.interfaces import IPreviewTarget |
22 from pyams_content.features.preview.interfaces import IPreviewTarget |
23 from pyams_content.features.review.interfaces import IReviewTarget |
23 from pyams_content.features.review.interfaces import IReviewTarget |
24 from pyams_content.shared.blog.interfaces import IWfBlogPost, BLOG_CONTENT_TYPE, BLOG_CONTENT_NAME, IBlogPost, \ |
24 from pyams_content.shared.blog.interfaces import IWfBlogPost, BLOG_CONTENT_TYPE, BLOG_CONTENT_NAME, IBlogPost, \ |
25 IWfBlogPostFactory |
25 IWfBlogPostFactory |
26 from pyams_workflow.interfaces import IWorkflow, IWorkflowVersions, IWorkflowState |
26 from pyams_workflow.interfaces import IWorkflow, IWorkflowVersions, IWorkflowState |
29 from pyams_content.shared.common import WfSharedContent, register_content_type, SharedContent, IWfSharedContentFactory |
29 from pyams_content.shared.common import WfSharedContent, register_content_type, SharedContent, IWfSharedContentFactory |
30 from pyams_utils.adapter import adapter_config |
30 from pyams_utils.adapter import adapter_config |
31 from zope.interface import implementer, provider |
31 from zope.interface import implementer, provider |
32 |
32 |
33 |
33 |
34 @implementer(IWfBlogPost, IParagraphContainerTarget, IThemesTarget, IIllustrationTarget, |
34 @implementer(IWfBlogPost, IParagraphContainerTarget, ITagsTarget, IThemesTarget, IIllustrationTarget, |
35 ILinkIllustrationTarget, IPreviewTarget, IReviewTarget) |
35 ILinkIllustrationTarget, IPreviewTarget, IReviewTarget) |
36 class WfBlogPost(WfSharedContent): |
36 class WfBlogPost(WfSharedContent): |
37 """Base blog post""" |
37 """Base blog post""" |
38 |
38 |
39 content_type = BLOG_CONTENT_TYPE |
39 content_type = BLOG_CONTENT_TYPE |