Updated sites tree table ID
authorThierry Florac <thierry.florac@onf.fr>
Mon, 05 Nov 2018 10:17:16 +0100
changeset 1054 550210e5fb83
parent 1053 3581b322dee5
child 1055 fb31161cac2d
Updated sites tree table ID
src/pyams_content/root/zmi/sites.py
--- a/src/pyams_content/root/zmi/sites.py	Tue Oct 30 12:31:12 2018 +0100
+++ b/src/pyams_content/root/zmi/sites.py	Mon Nov 05 10:17:16 2018 +0100
@@ -12,44 +12,39 @@
 
 __docformat__ = 'restructuredtext'
 
+from pyramid.exceptions import NotFound
+from pyramid.view import view_config
+from z3c.table.column import GetAttrColumn
+from z3c.table.interfaces import IColumn, IValues
+from zope.interface import implementer
+from zope.intid.interfaces import IIntIds
 
-# import standard library
-
-# import interfaces
 from pyams_content.interfaces import MANAGE_SITE_ROOT_PERMISSION
 from pyams_content.root.interfaces import ISiteRoot
-from pyams_content.shared.common.interfaces import ISharedSite, IBaseSharedTool
+from pyams_content.shared.common.interfaces import IBaseSharedTool, ISharedSite
 from pyams_content.shared.common.interfaces.zmi import IDashboardTable
+from pyams_content.skin import pyams_content
 from pyams_content.skin.zmi.interfaces import ISiteTreeMenu, ISiteTreeTable
+from pyams_pagelet.pagelet import pagelet_config
 from pyams_sequence.interfaces import ISequentialIdInfo
+from pyams_skin.container import ContainerView, delete_container_element
 from pyams_skin.interfaces import IInnerPage, IPageHeader
 from pyams_skin.interfaces.container import ITableWithActions
 from pyams_skin.layer import IPyAMSLayer
+from pyams_skin.page import DefaultPageHeaderAdapter
+from pyams_skin.table import ActionColumn, BaseTable, I18nColumn, TrashColumn
+from pyams_skin.viewlet.menu import MenuItem
+from pyams_utils.adapter import ContextRequestViewAdapter, adapter_config
+from pyams_utils.fanstatic import get_resource_path
 from pyams_utils.interfaces import VIEW_SYSTEM_PERMISSION
-from pyams_workflow.interfaces import IWorkflowPublicationInfo
-from pyams_zmi.interfaces.menu import ISiteManagementMenu
-from pyams_zmi.layer import IAdminLayer
-from z3c.table.interfaces import IColumn, IValues
-from zope.intid.interfaces import IIntIds
-
-# import packages
-from pyams_content.skin import pyams_content
-from pyams_pagelet.pagelet import pagelet_config
-from pyams_skin.container import ContainerView, delete_container_element
-from pyams_skin.page import DefaultPageHeaderAdapter
-from pyams_skin.table import BaseTable, TrashColumn, ActionColumn, I18nColumn
-from pyams_skin.viewlet.menu import MenuItem
-from pyams_utils.adapter import adapter_config, ContextRequestViewAdapter
-from pyams_utils.fanstatic import get_resource_path
 from pyams_utils.registry import get_utility
 from pyams_utils.url import absolute_url
 from pyams_viewlet.manager import viewletmanager_config
 from pyams_viewlet.viewlet import viewlet_config
+from pyams_workflow.interfaces import IWorkflowPublicationInfo
+from pyams_zmi.interfaces.menu import ISiteManagementMenu
+from pyams_zmi.layer import IAdminLayer
 from pyams_zmi.view import AdminView
-from pyramid.exceptions import NotFound
-from pyramid.view import view_config
-from z3c.table.column import GetAttrColumn
-from zope.interface import implementer
 
 from pyams_content import _
 
@@ -74,7 +69,7 @@
 class SiteTreeTable(BaseTable):
     """Site tree table"""
 
-    prefix = 'site_tree'
+    id = 'site_tree_table'
     title = _("Blogs and shared sites")
 
     sortOn = None