src/pyams_content/shared/zmi/sites.py
changeset 277 9649f8ce3b1c
parent 44 6931ae3912c9
child 278 f78a3411bf62
equal deleted inserted replaced
276:78422a1c4228 277:9649f8ce3b1c
    14 
    14 
    15 
    15 
    16 # import standard library
    16 # import standard library
    17 
    17 
    18 # import interfaces
    18 # import interfaces
    19 from pyams_content.shared.common.interfaces import ISharedSite, ISharedTool
    19 from pyams_content.shared.common.interfaces import ISharedSite, IBaseSharedTool
    20 from pyams_content.shared.common.interfaces.zmi import IDashboardTable
    20 from pyams_content.shared.common.interfaces.zmi import IDashboardTable
    21 from pyams_content.shared.zmi.interfaces import ISiteTreeMenu
    21 from pyams_content.shared.zmi.interfaces import ISiteTreeMenu
    22 from pyams_skin.interfaces import IInnerPage, IPageHeader
    22 from pyams_skin.interfaces import IInnerPage, IPageHeader
    23 from pyams_skin.interfaces.container import ITableWithActions
    23 from pyams_skin.interfaces.container import ITableWithActions
    24 from pyams_skin.layer import IPyAMSLayer
    24 from pyams_skin.layer import IPyAMSLayer
    89     """Site tree values adapter"""
    89     """Site tree values adapter"""
    90 
    90 
    91     @property
    91     @property
    92     def values(self):
    92     def values(self):
    93         return [value for value in self.context.values()
    93         return [value for value in self.context.values()
    94                 if ISharedTool.providedBy(value) or ISharedSite.providedBy(value)]
    94                 if IBaseSharedTool.providedBy(value) or ISharedSite.providedBy(value)]
    95 
    95 
    96 
    96 
    97 @pagelet_config(name='site-tree.html', context=ISite, layer=IPyAMSLayer, permission=VIEW_SYSTEM_PERMISSION)
    97 @pagelet_config(name='site-tree.html', context=ISite, layer=IPyAMSLayer, permission=VIEW_SYSTEM_PERMISSION)
    98 @implementer(IInnerPage)
    98 @implementer(IInnerPage)
    99 class SiteTreeView(AdminView, ContainerView):
    99 class SiteTreeView(AdminView, ContainerView):