--- a/src/pyams_content/component/paragraph/zmi/__init__.py Thu Sep 06 08:56:40 2018 +0200
+++ b/src/pyams_content/component/paragraph/zmi/__init__.py Thu Sep 06 13:59:39 2018 +0200
@@ -15,29 +15,31 @@
# import standard library
+from pyramid.location import lineage
+from z3c.form import field, button
+from zope.interface import Interface
+
+from pyams_content import _
# import interfaces
from pyams_content.component.paragraph.interfaces import IParagraphContainerTarget, IBaseParagraph, IParagraphFactory, \
IParagraphFactorySettings, IParagraphRenderer
+# import packages
+from pyams_content.component.paragraph.zmi.container import ParagraphContainerTable, ParagraphContainerBaseTable
from pyams_content.component.paragraph.zmi.interfaces import IParagraphContainerView
+from pyams_content.features.renderer.zmi import BaseRenderedContentRenderer
from pyams_content.interfaces import MANAGE_TOOL_PERMISSION
from pyams_content.shared.common.interfaces import IWfSharedContent
+from pyams_form.form import AJAXEditForm, AJAXAddForm, ajax_config
+from pyams_form.help import FormHelp
from pyams_form.interfaces.form import IFormHelp, check_submit_button
+from pyams_form.schema import ActionButton, CloseButton
+from pyams_form.security import ProtectedFormObjectMixin
from pyams_i18n.interfaces import II18n
+from pyams_pagelet.pagelet import pagelet_config
+from pyams_skin.event import get_json_switched_table_refresh_event, get_json_widget_refresh_event
from pyams_skin.interfaces.container import ITableElementName
from pyams_skin.interfaces.viewlet import IToolbarAddingMenu
from pyams_skin.layer import IPyAMSLayer
-from pyams_zmi.interfaces.menu import IPropertiesMenu
-from pyams_zmi.layer import IAdminLayer
-
-# import packages
-from pyams_content.component.paragraph.zmi.container import ParagraphContainerTable, ParagraphContainerBaseTable
-from pyams_content.features.renderer.zmi import BaseRenderedContentRenderer
-from pyams_form.form import AJAXEditForm, AJAXAddForm, ajax_config
-from pyams_form.help import FormHelp
-from pyams_form.schema import ActionButton, CloseButton
-from pyams_form.security import ProtectedFormObjectMixin
-from pyams_pagelet.pagelet import pagelet_config
-from pyams_skin.event import get_json_switched_table_refresh_event, get_json_widget_refresh_event
from pyams_skin.table import get_element_id
from pyams_skin.viewlet.menu import MenuItem, MenuDivider
from pyams_skin.viewlet.toolbar import ToolbarMenuItem
@@ -46,11 +48,8 @@
from pyams_utils.traversing import get_parent
from pyams_viewlet.viewlet import viewlet_config
from pyams_zmi.form import AdminDialogEditForm
-from pyramid.location import lineage
-from z3c.form import field, button
-from zope.interface import Interface
-
-from pyams_content import _
+from pyams_zmi.interfaces.menu import IPropertiesMenu
+from pyams_zmi.layer import IAdminLayer
#
@@ -246,7 +245,7 @@
if 'renderer' in changes.get(renderer_interface):
output.setdefault('events', []).append(
get_json_widget_refresh_event(self.context, self.request, self.__class__, 'renderer'))
- renderer = self.context.get_renderer()
+ renderer = self.context.get_renderer(self.request)
if (renderer is not None) and \
(renderer.settings_interface is not None):
output['smallbox'] = {