--- a/src/pyams_content/shared/blog/manager.py Wed Sep 13 11:38:02 2017 +0200
+++ b/src/pyams_content/shared/blog/manager.py Wed Sep 13 11:39:37 2017 +0200
@@ -16,6 +16,7 @@
# import standard library
# import interfaces
+from pyams_content.component.paragraph.interfaces import IParagraphFactorySettings
from pyams_content.component.theme.interfaces import IThemesManagerTarget
from pyams_content.shared.blog.interfaces import IBlogManager, BLOG_CONTENT_TYPE, IBlogFolder
from pyams_portal.interfaces import IPortalContext
@@ -31,6 +32,7 @@
from pyramid.events import subscriber
from zope.container.folder import Folder
from zope.interface import implementer
+from zope.schema.fieldproperty import FieldProperty
@implementer(IBlogFolder)
@@ -38,13 +40,15 @@
"""Blog folder class"""
-@implementer(IBlogManager, IThemesManagerTarget, IAttributeAnnotatable, IPortalContext)
+@implementer(IBlogManager, IParagraphFactorySettings, IThemesManagerTarget, IAttributeAnnotatable, IPortalContext)
class BlogManager(SharedTool, UserSkinnableContent):
"""Nlog manager class"""
shared_content_type = BLOG_CONTENT_TYPE
shared_content_factory = BlogPost
+ auto_created_paragraphs = FieldProperty(IParagraphFactorySettings['auto_created_paragraphs'])
+
@subscriber(IObjectAddedEvent, context_selector=IBlogManager)
def handle_added_blog_manager(event):