diff -r 2cfeb340dacf -r cdf63a1c7dc9 src/pyams_content/shared/site/zmi/container.py --- a/src/pyams_content/shared/site/zmi/container.py Wed Nov 06 16:54:59 2019 +0100 +++ b/src/pyams_content/shared/site/zmi/container.py Tue Nov 19 16:39:10 2019 +0100 @@ -51,7 +51,8 @@ from pyams_skin.viewlet.menu import MenuItem from pyams_skin.viewlet.toolbar import ToolbarMenuItem from pyams_template.template import template_config -from pyams_utils.adapter import ContextRequestAdapter, ContextRequestViewAdapter, adapter_config +from pyams_utils.adapter import ContextRequestAdapter, ContextRequestViewAdapter, adapter_config, \ + NullAdapter from pyams_utils.date import format_datetime from pyams_utils.fanstatic import get_resource_path from pyams_utils.interfaces import VIEW_SYSTEM_PERMISSION @@ -412,6 +413,11 @@ } +@adapter_config(name='type', context=(IBaseSiteItem, IPyAMSLayer, ISiteTreeTable), provides=IColumn) +class SiteContainerTreeTypeColumn(NullAdapter): + """Site container tree type column -- disabled in site tree view!""" + + @adapter_config(name='name', context=(IBaseSiteItem, IPyAMSLayer, ISiteTreeTable), provides=IColumn) class SiteContainerTreeNameColumn(NameColumn): """Site container tree name column"""