equal
deleted
inserted
replaced
16 |
16 |
17 |
17 |
18 # import standard library |
18 # import standard library |
19 |
19 |
20 # import interfaces |
20 # import interfaces |
|
21 from pyams_content.component.illustration import IIllustrationTarget |
21 from pyams_content.features.alert.interfaces import IAlertTarget |
22 from pyams_content.features.alert.interfaces import IAlertTarget |
22 from pyams_content.features.footer.interfaces import IFooterTarget |
23 from pyams_content.features.footer.interfaces import IFooterTarget |
23 from pyams_content.features.header.interfaces import IHeaderTarget |
24 from pyams_content.features.header.interfaces import IHeaderTarget |
24 from pyams_content.features.preview.interfaces import IPreviewTarget |
25 from pyams_content.features.preview.interfaces import IPreviewTarget |
25 from pyams_content.interfaces import WEBMASTER_ROLE, OPERATOR_ROLE |
26 from pyams_content.interfaces import WEBMASTER_ROLE, OPERATOR_ROLE |
44 from pyramid.events import subscriber |
45 from pyramid.events import subscriber |
45 from zope.interface import implementer |
46 from zope.interface import implementer |
46 |
47 |
47 |
48 |
48 @implementer(IDefaultProtectionPolicy, ISiteRoot, ISiteRootRoles, IPortalContext, |
49 @implementer(IDefaultProtectionPolicy, ISiteRoot, ISiteRootRoles, IPortalContext, |
49 IHeaderTarget, IFooterTarget, IAlertTarget, IPreviewTarget) |
50 IIllustrationTarget, IHeaderTarget, IFooterTarget, IAlertTarget, IPreviewTarget) |
50 class SiteRoot(ProtectedObject, BaseSiteRoot, UserSkinnableContent): |
51 class SiteRoot(ProtectedObject, BaseSiteRoot, UserSkinnableContent): |
51 """Main site root""" |
52 """Main site root""" |
52 |
53 |
53 __roles__ = ('system.Manager', WEBMASTER_ROLE, OPERATOR_ROLE, 'pyams.TemplatesManager') |
54 __roles__ = ('system.Manager', WEBMASTER_ROLE, OPERATOR_ROLE, 'pyams.TemplatesManager') |
54 |
55 |