Added illustration adapter for basic illustration target
authorThierry Florac <thierry.florac@onf.fr>
Mon, 27 Aug 2018 11:06:31 +0200
changeset 116 b0d31081dc8f
parent 115 bcd8b2769552
child 117 d45a531a723d
Added illustration adapter for basic illustration target
src/pyams_default_theme/shared/common/__init__.py
--- a/src/pyams_default_theme/shared/common/__init__.py	Sat Jul 21 15:51:10 2018 +0200
+++ b/src/pyams_default_theme/shared/common/__init__.py	Mon Aug 27 11:06:31 2018 +0200
@@ -16,7 +16,7 @@
 # import standard library
 
 # import interfaces
-from pyams_content.component.illustration import ILinkIllustration, IIllustration
+from pyams_content.component.illustration import ILinkIllustration, IIllustration, IBasicIllustrationTarget
 from pyams_content.interfaces import IBaseContent
 from pyams_content.shared.common.interfaces import IWfSharedContent
 from pyams_default_theme.interfaces import IContentNavigationTitle, IContentTag, IContentDate, \
@@ -91,6 +91,7 @@
 
 
 @adapter_config(context=(IBaseContent, IPyAMSLayer), provides=IContentNavigationIllustration)
+@adapter_config(context=(IBasicIllustrationTarget, IPyAMSLayer), provides=IContentNavigationIllustration)
 def base_content_navigation_illustration_adapter(context, request):
     """Default content navigation illustration adapter"""
     illustration = ILinkIllustration(context, None)