Added attribute to header settings to know if header can be applied on site root
authorThierry Florac <thierry.florac@onf.fr>
Mon, 26 Nov 2018 09:30:37 +0100
changeset 1115 6ca2680774ee
parent 1114 20fbecad8cf4
child 1116 f286ddfd87ec
Added attribute to header settings to know if header can be applied on site root
src/pyams_content/features/header/interfaces.py
--- a/src/pyams_content/features/header/interfaces.py	Fri Nov 23 14:46:36 2018 +0100
+++ b/src/pyams_content/features/header/interfaces.py	Mon Nov 26 09:30:37 2018 +0100
@@ -12,18 +12,13 @@
 
 __docformat__ = 'restructuredtext'
 
-
-# import standard library
-
-# import interfaces
-from pyams_content.features.renderer import IContentRenderer, IRendererSettings, IRenderedContent
-from pyams_utils.interfaces.inherit import IInheritInfo
 from zope.annotation.interfaces import IAttributeAnnotatable
-
-# import packages
 from zope.interface import Attribute
 from zope.schema import Choice
 
+from pyams_content.features.renderer import IContentRenderer, IRenderedContent, IRendererSettings
+from pyams_utils.interfaces.inherit import IInheritInfo
+
 from pyams_content import _
 
 
@@ -59,3 +54,5 @@
 
 class IHeaderRendererSettings(IRendererSettings):
     """Header renderer settings interface"""
+
+    can_apply_on_root = Attribute("Can apply header on root?")