src/pyams_content/shared/blog/__init__.py
changeset 621 a75b1fc09fde
parent 613 cf14f3928a90
child 694 4541a452fd4c
--- a/src/pyams_content/shared/blog/__init__.py	Mon Jun 11 16:13:17 2018 +0200
+++ b/src/pyams_content/shared/blog/__init__.py	Mon Jun 11 16:48:57 2018 +0200
@@ -23,18 +23,16 @@
 from pyams_content.features.review.interfaces import IReviewTarget
 from pyams_content.shared.blog.interfaces import IWfBlogPost, BLOG_CONTENT_TYPE, BLOG_CONTENT_NAME, IBlogPost, \
     IWfBlogPostFactory
-from pyams_portal.interfaces import IPortalContext, IPortalPage, PORTAL_PAGE_KEY
 from pyams_workflow.interfaces import IWorkflow, IWorkflowVersions, IWorkflowState
 
 # import packages
 from pyams_content.shared.common import WfSharedContent, register_content_type, SharedContent, IWfSharedContentFactory
-from pyams_content.shared.common.portal import SharedContentPortalPage
-from pyams_utils.adapter import adapter_config, get_annotation_adapter
+from pyams_utils.adapter import adapter_config
 from zope.interface import implementer, provider
 
 
 @implementer(IWfBlogPost, IParagraphContainerTarget, IThemesTarget, IIllustrationTarget,
-             IPortalContext, IPreviewTarget, IReviewTarget)
+             IPreviewTarget, IReviewTarget)
 class WfBlogPost(WfSharedContent):
     """Base blog post"""
 
@@ -60,9 +58,3 @@
 @adapter_config(context=IWfBlogPostFactory, provides=IWfSharedContentFactory)
 def blog_post_content_factory(context):
     return WfBlogPost
-
-
-@adapter_config(context=IWfBlogPost, provides=IPortalPage)
-def blog_post_portal_page_adapter(context):
-    """Blog post portal page adapter"""
-    return get_annotation_adapter(context, PORTAL_PAGE_KEY, SharedContentPortalPage)