# HG changeset patch # User Thierry Florac # Date 1538060363 -7200 # Node ID 38af361bdd7c26266b25ae8994b7d3c2f0caea09 # Parent 606d951d75914d541d32fdfb3ed69251914e5dca Added site root header illustration adapter diff -r 606d951d7591 -r 38af361bdd7c src/pyams_default_theme/component/illustration/__init__.py --- a/src/pyams_default_theme/component/illustration/__init__.py Thu Sep 27 16:41:05 2018 +0200 +++ b/src/pyams_default_theme/component/illustration/__init__.py Thu Sep 27 16:59:23 2018 +0200 @@ -23,6 +23,7 @@ from pyams_content.features.renderer.interfaces import IContentRenderer from pyams_content.features.renderer.skin import BaseContentRenderer from pyams_content.interfaces import IBaseContent +from pyams_content.root import ISiteRoot from pyams_default_theme import _ from pyams_default_theme.component.illustration.interfaces import IIllustrationRenderer, IIllustrationWithZoomSettings, \ ILLUSTRATION_AFTER_BODY, ILLUSTRATION_BEFORE_BODY @@ -66,6 +67,7 @@ return self.request.registry.queryMultiAdapter((context, self.request), IContentNavigationIllustration) +@adapter_config(context=(ISiteRoot, IPyAMSLayer), provides=IContentHeaderIllustration) @adapter_config(context=(IBaseContent, IPyAMSLayer), provides=IContentHeaderIllustration) def base_content_header_illustration_adapter(context, request): """Base content header illustration adapter"""