Added views 'preview' and 'review' features support
authorThierry Florac <thierry.florac@onf.fr>
Fri, 10 Nov 2017 12:02:22 +0100
changeset 267 9d42d0a6e945
parent 266 16ff75a093d8
child 268 b8b918680c52
Added views 'preview' and 'review' features support
src/pyams_content/shared/view/__init__.py
--- a/src/pyams_content/shared/view/__init__.py	Fri Nov 10 12:01:40 2017 +0100
+++ b/src/pyams_content/shared/view/__init__.py	Fri Nov 10 12:02:22 2017 +0100
@@ -21,6 +21,8 @@
 
 # import interfaces
 from hypatia.interfaces import ICatalog
+from pyams_content.features.preview.interfaces import IPreviewTarget
+from pyams_content.features.review.interfaces import IReviewTarget
 from pyams_content.shared.view.interfaces import IView, IWfView, IViewQuery, IViewQueryParamsExtension, \
     IViewQueryFilterExtension, VIEW_CONTENT_TYPE, VIEW_CONTENT_NAME
 from zope.intid.interfaces import IIntIds
@@ -48,7 +50,7 @@
 VIEWS_CACHE_KEY = 'view_{view}.context_{context}'
 
 
-@implementer(IWfView)
+@implementer(IWfView, IPreviewTarget, IReviewTarget)
 class WfView(WfSharedContent):
     """Base view"""