Updated site root title meta adapter
authorThierry Florac <thierry.florac@onf.fr>
Thu, 05 Jul 2018 12:41:05 +0200
changeset 79 c849d079a782
parent 78 767f9ec890f4
child 80 04aaaa70df03
Updated site root title meta adapter
src/pyams_zmi/metas.py
--- a/src/pyams_zmi/metas.py	Thu Jul 05 12:32:22 2018 +0200
+++ b/src/pyams_zmi/metas.py	Thu Jul 05 12:41:05 2018 +0200
@@ -18,6 +18,7 @@
 # import interfaces
 from pyams_skin.interfaces.configuration import IBackOfficeConfiguration
 from pyams_skin.interfaces.metas import IHTMLContentMetas
+from pyams_utils.interfaces.site import ISiteRoot
 from pyams_zmi.layer import IAdminLayer
 
 # import packages
@@ -27,6 +28,7 @@
 
 
 @adapter_config(name='title', context=(Interface, IAdminLayer, Interface), provides=IHTMLContentMetas)
+@adapter_config(name='title', context=(ISiteRoot, IAdminLayer, Interface), provides=IHTMLContentMetas)
 class TitleMetasAdapter(ContextRequestViewAdapter):
     """Title metas adapter"""