--- a/src/pyams_content/shared/site/__init__.py Wed Nov 06 16:54:59 2019 +0100
+++ b/src/pyams_content/shared/site/__init__.py Tue Nov 19 16:39:10 2019 +0100
@@ -10,8 +10,6 @@
# FOR A PARTICULAR PURPOSE.
#
-__docformat__ = 'restructuredtext'
-
from zope.interface import implementer, provider
from zope.schema.fieldproperty import FieldProperty
@@ -20,22 +18,28 @@
from pyams_content.component.theme.interfaces import ITagsTarget, IThemesTarget
from pyams_content.features.preview.interfaces import IPreviewTarget
from pyams_content.features.review.interfaces import IReviewTarget
-from pyams_content.shared.common import IWfSharedContentFactory, SharedContent, WfSharedContent, register_content_type
-from pyams_content.shared.site.interfaces import ISiteElementNavigation, ISiteTopic, IWfSiteTopic, IWfSiteTopicFactory, \
- SITE_TOPIC_CONTENT_NAME, SITE_TOPIC_CONTENT_TYPE
+from pyams_content.shared.common import IWfSharedContentFactory, SharedContent, WfSharedContent, \
+ register_content_type
+from pyams_content.shared.common.types import WfTypedSharedContentMixin
+from pyams_content.shared.site.interfaces import ISiteElementNavigation, ISiteTopic, IWfSiteTopic, \
+ IWfSiteTopicFactory, SITE_TOPIC_CONTENT_NAME, SITE_TOPIC_CONTENT_TYPE
from pyams_utils.adapter import adapter_config
from pyams_workflow.interfaces import IWorkflow, IWorkflowState, IWorkflowVersions
+__docformat__ = 'restructuredtext'
+
+
@implementer(IWfSiteTopic, IIllustrationTarget, ILinkIllustrationTarget, IParagraphContainerTarget,
ITagsTarget, IThemesTarget, IPreviewTarget, IReviewTarget)
-class WfSiteTopic(WfSharedContent):
+class WfSiteTopic(WfSharedContent, WfTypedSharedContentMixin):
"""Base site topic"""
content_type = SITE_TOPIC_CONTENT_TYPE
content_name = SITE_TOPIC_CONTENT_NAME
references = FieldProperty(IWfSiteTopic['references'])
+ data_type = FieldProperty(IWfSiteTopic['data_type'])
register_content_type(WfSiteTopic)