src/pyams_content/shared/blog/manager.py
changeset 618 3c48622a2937
parent 546 213db0cb6b4c
child 694 4541a452fd4c
equal deleted inserted replaced
617:2e4dbe6fa156 618:3c48622a2937
    25 from pyams_content.reference.pictograms.interfaces import IPictogramManagerTarget
    25 from pyams_content.reference.pictograms.interfaces import IPictogramManagerTarget
    26 from pyams_content.root.interfaces import ISiteRoot
    26 from pyams_content.root.interfaces import ISiteRoot
    27 from pyams_content.shared.blog.interfaces import IBlogManager, IBlogFolder, IBlogFolderFactory, IBlogManagerFactory
    27 from pyams_content.shared.blog.interfaces import IBlogManager, IBlogFolder, IBlogFolderFactory, IBlogManagerFactory
    28 from pyams_content.shared.common.interfaces import ISharedContentFactory
    28 from pyams_content.shared.common.interfaces import ISharedContentFactory
    29 from pyams_portal.interfaces import IPortalContext
    29 from pyams_portal.interfaces import IPortalContext
    30 from zope.annotation.interfaces import IAttributeAnnotatable
       
    31 from zope.component.interfaces import ISite
    30 from zope.component.interfaces import ISite
    32 from zope.lifecycleevent.interfaces import IObjectAddedEvent, IObjectRemovedEvent
    31 from zope.lifecycleevent.interfaces import IObjectAddedEvent, IObjectRemovedEvent
    33 
    32 
    34 # import packages
    33 # import packages
    35 from pyams_content.shared.blog import BlogPost
    34 from pyams_content.shared.blog import BlogPost
    53                 return False
    52                 return False
    54         return True
    53         return True
    55 
    54 
    56 
    55 
    57 @implementer(IBlogManager, IParagraphFactorySettings, IThemesManagerTarget, IPictogramManagerTarget,
    56 @implementer(IBlogManager, IParagraphFactorySettings, IThemesManagerTarget, IPictogramManagerTarget,
    58              IIllustrationTarget, IPortalContext, IHeaderTarget, IFooterTarget, IPreviewTarget, IAttributeAnnotatable)
    57              IIllustrationTarget, IHeaderTarget, IFooterTarget, IPortalContext, IPreviewTarget)
    59 class BlogManager(Folder, BaseSharedTool, UserSkinnableContent):
    58 class BlogManager(Folder, BaseSharedTool, UserSkinnableContent):
    60     """Nlog manager class"""
    59     """Nlog manager class"""
    61 
    60 
    62     allowed_paragraphs = FieldProperty(IParagraphFactorySettings['allowed_paragraphs'])
    61     allowed_paragraphs = FieldProperty(IParagraphFactorySettings['allowed_paragraphs'])
    63     auto_created_paragraphs = FieldProperty(IParagraphFactorySettings['auto_created_paragraphs'])
    62     auto_created_paragraphs = FieldProperty(IParagraphFactorySettings['auto_created_paragraphs'])