src/pyams_content/root/__init__.py
changeset 1449 b74f6ea0f791
parent 1389 1485db1e2b5e
equal deleted inserted replaced
1448:0f646872d21b 1449:b74f6ea0f791
    15 from persistent import Persistent
    15 from persistent import Persistent
    16 from pyramid.events import subscriber
    16 from pyramid.events import subscriber
    17 from zope.interface import implementer
    17 from zope.interface import implementer
    18 
    18 
    19 from pyams_content.component.illustration.interfaces import IIllustrationTarget
    19 from pyams_content.component.illustration.interfaces import IIllustrationTarget
    20 from pyams_content.component.theme import ICollectionsManagerTarget
    20 from pyams_content.component.theme import ICollectionsManagerTarget, IThemesManagerTarget
    21 from pyams_content.component.theme.interfaces import ITagsManagerTarget
    21 from pyams_content.component.theme.interfaces import ITagsManagerTarget
    22 from pyams_content.features.alert.interfaces import IAlertTarget
    22 from pyams_content.features.alert.interfaces import IAlertTarget
    23 from pyams_content.features.footer.interfaces import IFooterTarget
    23 from pyams_content.features.footer.interfaces import IFooterTarget
    24 from pyams_content.features.header.interfaces import IHeaderTarget
    24 from pyams_content.features.header.interfaces import IHeaderTarget
    25 from pyams_content.features.preview.interfaces import IPreviewTarget
    25 from pyams_content.features.preview.interfaces import IPreviewTarget
    49 
    49 
    50 from pyams_content import _
    50 from pyams_content import _
    51 
    51 
    52 
    52 
    53 @implementer(IDefaultProtectionPolicy, ISiteRoot, ISiteRootRoles, IPortalContext,
    53 @implementer(IDefaultProtectionPolicy, ISiteRoot, ISiteRootRoles, IPortalContext,
    54              ITagsManagerTarget, ICollectionsManagerTarget, IIllustrationTarget,
    54              ITagsManagerTarget, ICollectionsManagerTarget, IThemesManagerTarget,
    55              IHeaderTarget, IFooterTarget, ISocialShareManagerTarget,
    55              IIllustrationTarget, IHeaderTarget, IFooterTarget, ISocialShareManagerTarget,
    56              IAlertTarget, IRedirectionManagerTarget, IPreviewTarget)
    56              IAlertTarget, IRedirectionManagerTarget, IPreviewTarget)
    57 class SiteRoot(ProtectedObject, BaseSiteRoot, UserSkinnableContent):
    57 class SiteRoot(ProtectedObject, BaseSiteRoot, UserSkinnableContent):
    58     """Main site root"""
    58     """Main site root"""
    59 
    59 
    60     __roles__ = (SYSTEM_ADMIN_ROLE, WEBMASTER_ROLE, OPERATOR_ROLE, DESIGNER_ROLE)
    60     __roles__ = (SYSTEM_ADMIN_ROLE, WEBMASTER_ROLE, OPERATOR_ROLE, DESIGNER_ROLE)