Added news 'preview' and 'review' features support, and added form content checker
authorThierry Florac <thierry.florac@onf.fr>
Fri, 10 Nov 2017 12:01:40 +0100
changeset 266 16ff75a093d8
parent 265 4ac7ac893ff8
child 267 9d42d0a6e945
Added news 'preview' and 'review' features support, and added form content checker
src/pyams_content/shared/news/__init__.py
--- a/src/pyams_content/shared/news/__init__.py	Fri Nov 10 12:01:18 2017 +0100
+++ b/src/pyams_content/shared/news/__init__.py	Fri Nov 10 12:01:40 2017 +0100
@@ -16,10 +16,10 @@
 # import standard library
 
 # import interfaces
-from pyams_content.component.extfile.interfaces import IExtFileContainerTarget
-from pyams_content.component.links.interfaces import ILinkContainerTarget
 from pyams_content.component.paragraph.interfaces import IParagraphContainerTarget
 from pyams_content.component.theme.interfaces import IThemesTarget
+from pyams_content.features.preview.interfaces import IPreviewTarget
+from pyams_content.features.review.interfaces import IReviewTarget
 from pyams_content.shared.news.interfaces import INewsEvent, IWfNewsEvent, NEWS_CONTENT_TYPE, NEWS_CONTENT_NAME
 
 # import packages
@@ -27,7 +27,8 @@
 from zope.interface import implementer
 
 
-@implementer(IWfNewsEvent, IParagraphContainerTarget, IThemesTarget)
+@implementer(IWfNewsEvent, IParagraphContainerTarget, IThemesTarget,
+             IPreviewTarget, IReviewTarget)
 class WfNewsEvent(WfSharedContent):
     """Base news event"""