--- a/src/pyams_content/component/paragraph/zmi/header.py Mon Oct 08 11:53:54 2018 +0200
+++ b/src/pyams_content/component/paragraph/zmi/header.py Mon Oct 08 13:47:23 2018 +0200
@@ -12,27 +12,22 @@
__docformat__ = 'restructuredtext'
-
-# import standard library
+from z3c.form import button, field
+from z3c.form.interfaces import INPUT_MODE
+from zope.interface import implementer
-# import interfaces
from pyams_content.component.paragraph.interfaces.header import IHeaderParagraph
+from pyams_content.component.paragraph.zmi import BaseParagraphAJAXEditForm, BaseParagraphPropertiesEditForm, \
+ IParagraphInnerEditFormButtons, get_json_paragraph_refresh_event
from pyams_content.component.paragraph.zmi.interfaces import IParagraphInnerEditor
+from pyams_content.features.renderer.zmi.widget import RendererFieldWidget
from pyams_content.interfaces import MANAGE_CONTENT_PERMISSION
+from pyams_form.form import ajax_config
from pyams_form.interfaces.form import IInnerForm
-from pyams_skin.layer import IPyAMSLayer
-from z3c.form.interfaces import INPUT_MODE
-
-# import packages
-from pyams_content.component.paragraph.zmi import BaseParagraphAJAXEditForm, \
- BaseParagraphPropertiesEditForm, get_json_paragraph_refresh_event, IParagraphEditFormButtons
-from pyams_content.features.renderer.zmi.widget import RendererFieldWidget
-from pyams_form.form import ajax_config
from pyams_pagelet.pagelet import pagelet_config
from pyams_skin.event import get_json_widget_refresh_event
+from pyams_skin.layer import IPyAMSLayer
from pyams_utils.adapter import adapter_config
-from z3c.form import field, button
-from zope.interface import implementer
from pyams_content import _
@@ -80,7 +75,7 @@
@property
def buttons(self):
if self.mode == INPUT_MODE:
- return button.Buttons(IParagraphEditFormButtons)
+ return button.Buttons(IParagraphInnerEditFormButtons)
else:
return button.Buttons()