# HG changeset patch # User Thierry Florac # Date 1536763421 -7200 # Node ID f80eec0f148e5998eaae2a2045aedfddb34e2344 # Parent f14df6ce13244ca70c22a9cd28a753bb02921093 Updated breadcrumbs adapters diff -r f14df6ce1324 -r f80eec0f148e 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