Updated breadcrumbs adapters
authorThierry Florac <tflorac@ulthar.net>
Wed, 12 Sep 2018 16:43:41 +0200
changeset 90 f80eec0f148e
parent 89 f14df6ce1324
child 91 4925a9f3a985
Updated breadcrumbs adapters
src/pyams_thesaurus/zmi/thesaurus.py
--- a/src/pyams_thesaurus/zmi/thesaurus.py	Sun Sep 09 11:22:34 2018 +0200
+++ b/src/pyams_thesaurus/zmi/thesaurus.py	Wed Sep 12 16:43:41 2018 +0200
@@ -43,7 +43,7 @@
 from pyams_skin.layer import IPyAMSLayer
 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.menu import MenuItem
 from pyams_skin.viewlet.toolbar import ToolbarMenuItem
 from pyams_template.template import template_config
@@ -80,8 +80,8 @@
     header = _("This thesaurus")
 
 
-@adapter_config(context=(IThesaurus, IPyAMSLayer), provides=IBreadcrumbItem)
-class ThesaurusBreadcrumbAdapter(BreadcrumbItem):
+@adapter_config(context=(IThesaurus, IAdminLayer), provides=IBreadcrumbItem)
+class ThesaurusBreadcrumbAdapter(BreadcrumbAdminLayerItem):
     """Thesaurus breadcrumb adapter"""
 
     @property