Updated breadcrumbs adapters
authorThierry Florac <tflorac@ulthar.net>
Wed, 12 Sep 2018 16:44:03 +0200
changeset 180 b3a4f4e2c959
parent 179 61229f2e93ce
child 181 561b132c6f14
Updated breadcrumbs adapters
src/pyams_portal/zmi/container.py
src/pyams_portal/zmi/template.py
--- a/src/pyams_portal/zmi/container.py	Thu Sep 06 13:58:31 2018 +0200
+++ b/src/pyams_portal/zmi/container.py	Wed Sep 12 16:44:03 2018 +0200
@@ -34,7 +34,7 @@
 from pyams_skin.container import ContainerView, delete_container_element
 from pyams_skin.page import DefaultPageHeaderAdapter
 from pyams_skin.table import DefaultElementEditorAdapter, BaseTable, NameColumn, TrashColumn
-from pyams_skin.viewlet.breadcrumb import BreadcrumbItem
+from pyams_skin.viewlet.breadcrumb import BreadcrumbAdminLayerItem
 from pyams_skin.viewlet.menu import MenuItem
 from pyams_utils.adapter import adapter_config, ContextRequestViewAdapter
 from pyams_utils.fanstatic import get_resource_path
@@ -58,7 +58,7 @@
 #
 
 @adapter_config(context=(IPortalTemplateContainer, IAdminLayer), provides=IBreadcrumbItem)
-class PortalTemplateContainerBreadcrumbAdapter(BreadcrumbItem):
+class PortalTemplateContainerBreadcrumbAdapter(BreadcrumbAdminLayerItem):
     """Portal templates container breadcrumbs adapter"""
 
     label = _("Portal templates")
--- a/src/pyams_portal/zmi/template.py	Thu Sep 06 13:58:31 2018 +0200
+++ b/src/pyams_portal/zmi/template.py	Wed Sep 12 16:44:03 2018 +0200
@@ -33,7 +33,7 @@
 from pyams_portal.zmi.container import PortalTemplateContainerTable
 from pyams_skin.page import DefaultPageHeaderAdapter
 from pyams_skin.table import DefaultElementEditorAdapter
-from pyams_skin.viewlet.breadcrumb import BreadcrumbItem
+from pyams_skin.viewlet.breadcrumb import BreadcrumbAdminLayerItem
 from pyams_skin.viewlet.toolbar import ToolbarAction
 from pyams_utils.adapter import adapter_config, ContextRequestAdapter
 from pyams_utils.registry import query_utility
@@ -49,8 +49,8 @@
 from pyams_portal import _
 
 
-@adapter_config(context=(IPortalTemplate, IPyAMSLayer), provides=IBreadcrumbItem)
-class PortalTemplateBreadcrumbAdapter(BreadcrumbItem):
+@adapter_config(context=(IPortalTemplate, IAdminLayer), provides=IBreadcrumbItem)
+class PortalTemplateBreadcrumbAdapter(BreadcrumbAdminLayerItem):
     """Portal template breadcrumb adapter"""
 
     @property