Added support for pictograms to sites and blogs managers
authorThierry Florac <thierry.florac@onf.fr>
Wed, 14 Mar 2018 10:15:21 +0100
changeset 481 b69f240fc46d
parent 480 866425976e88
child 482 d142297eee4b
Added support for pictograms to sites and blogs managers
src/pyams_content/shared/blog/manager.py
src/pyams_content/shared/site/manager.py
--- a/src/pyams_content/shared/blog/manager.py	Wed Mar 14 10:14:47 2018 +0100
+++ b/src/pyams_content/shared/blog/manager.py	Wed Mar 14 10:15:21 2018 +0100
@@ -19,6 +19,7 @@
 from pyams_content.component.illustration import IIllustrationTarget
 from pyams_content.component.paragraph.interfaces import IParagraphFactorySettings
 from pyams_content.component.theme.interfaces import IThemesManagerTarget
+from pyams_content.reference.pictograms.interfaces import IPictogramManagerTarget
 from pyams_content.shared.blog.interfaces import IBlogManager, BLOG_CONTENT_TYPE, IBlogFolder
 from pyams_portal.interfaces import IPortalContext
 from zope.annotation.interfaces import IAttributeAnnotatable
@@ -47,7 +48,7 @@
         return True
 
 
-@implementer(IBlogManager, IParagraphFactorySettings, IThemesManagerTarget,
+@implementer(IBlogManager, IParagraphFactorySettings, IThemesManagerTarget, IPictogramManagerTarget,
              IIllustrationTarget, IPortalContext, IAttributeAnnotatable)
 class BlogManager(SharedTool, UserSkinnableContent):
     """Nlog manager class"""
--- a/src/pyams_content/shared/site/manager.py	Wed Mar 14 10:14:47 2018 +0100
+++ b/src/pyams_content/shared/site/manager.py	Wed Mar 14 10:15:21 2018 +0100
@@ -20,6 +20,7 @@
 from pyams_content.component.paragraph.interfaces import IParagraphFactorySettings
 from pyams_content.component.theme.interfaces import IThemesManagerTarget
 from pyams_content.interfaces import MANAGE_SITE_PERMISSION
+from pyams_content.reference.pictograms.interfaces import IPictogramManagerTarget
 from pyams_content.shared.site.interfaces import ISiteManager, TOPIC_CONTENT_TYPE
 from pyams_form.interfaces.form import IFormContextPermissionChecker
 from pyams_i18n.interfaces import II18n
@@ -46,7 +47,7 @@
 from zope.schema.vocabulary import SimpleTerm, SimpleVocabulary
 
 
-@implementer(ISiteManager, IParagraphFactorySettings, IThemesManagerTarget,
+@implementer(ISiteManager, IParagraphFactorySettings, IThemesManagerTarget, IPictogramManagerTarget,
              IIllustrationTarget, IPortalContext, IAttributeAnnotatable)
 class SiteManager(SiteContainerMixin, OrderedContainer, BaseSharedTool, UserSkinnableContent):
     """Site manager persistent class"""