14 |
14 |
15 |
15 |
16 # import standard library |
16 # import standard library |
17 |
17 |
18 # import interfaces |
18 # import interfaces |
19 from pyams_content.component.illustration import IIllustrationTarget |
19 from pyams_content.component.illustration import IIllustrationTarget, ILinkIllustrationTarget |
20 from pyams_content.component.paragraph.interfaces import IParagraphFactorySettings |
20 from pyams_content.component.paragraph.interfaces import IParagraphFactorySettings |
21 from pyams_content.component.theme.interfaces import IThemesManagerTarget |
21 from pyams_content.component.theme.interfaces import IThemesManagerTarget |
22 from pyams_content.features.footer.interfaces import IFooterTarget |
22 from pyams_content.features.footer.interfaces import IFooterTarget |
23 from pyams_content.features.header.interfaces import IHeaderTarget |
23 from pyams_content.features.header.interfaces import IHeaderTarget |
24 from pyams_content.features.preview.interfaces import IPreviewTarget |
24 from pyams_content.features.preview.interfaces import IPreviewTarget |
50 from zope.schema.fieldproperty import FieldProperty |
50 from zope.schema.fieldproperty import FieldProperty |
51 from zope.schema.vocabulary import SimpleTerm, SimpleVocabulary |
51 from zope.schema.vocabulary import SimpleTerm, SimpleVocabulary |
52 |
52 |
53 |
53 |
54 @implementer(ISiteManager, IParagraphFactorySettings, IThemesManagerTarget, IPictogramManagerTarget, |
54 @implementer(ISiteManager, IParagraphFactorySettings, IThemesManagerTarget, IPictogramManagerTarget, |
55 IIllustrationTarget, IPortalContext, IHeaderTarget, IFooterTarget, IPreviewTarget) |
55 IIllustrationTarget, ILinkIllustrationTarget, IPortalContext, IHeaderTarget, |
|
56 IFooterTarget, IPreviewTarget) |
56 class SiteManager(SiteContainerMixin, OrderedContainer, BaseSharedTool, UserSkinnableContent): |
57 class SiteManager(SiteContainerMixin, OrderedContainer, BaseSharedTool, UserSkinnableContent): |
57 """Site manager persistent class""" |
58 """Site manager persistent class""" |
58 |
59 |
59 allowed_paragraphs = FieldProperty(IParagraphFactorySettings['allowed_paragraphs']) |
60 allowed_paragraphs = FieldProperty(IParagraphFactorySettings['allowed_paragraphs']) |
60 auto_created_paragraphs = FieldProperty(IParagraphFactorySettings['auto_created_paragraphs']) |
61 auto_created_paragraphs = FieldProperty(IParagraphFactorySettings['auto_created_paragraphs']) |