Imports cleanup
authorThierry Florac <thierry.florac@onf.fr>
Thu, 14 Jun 2018 17:35:36 +0200
changeset 109 1204c6c35575
parent 108 7dd8d5c7e206
child 110 0560f0ceb80f
Imports cleanup
src/pyams_portal/zmi/portlet.py
--- a/src/pyams_portal/zmi/portlet.py	Thu Jun 14 17:33:55 2018 +0200
+++ b/src/pyams_portal/zmi/portlet.py	Thu Jun 14 17:35:36 2018 +0200
@@ -9,8 +9,6 @@
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
 #
-from pyams_form.form import ajax_config
-from pyams_pagelet.pagelet import pagelet_config
 
 __docformat__ = 'restructuredtext'
 
@@ -22,8 +20,11 @@
 from pyams_portal.interfaces import IPortlet, IPortalTemplate, IPortalPage, MANAGE_TEMPLATE_PERMISSION, \
     IPortletSettings, IPortletRendererSettings
 from pyams_skin.layer import IPyAMSLayer
+from pyams_zmi.interfaces import IPropertiesEditForm
 
 # import packages
+from pyams_form.form import ajax_config
+from pyams_pagelet.pagelet import pagelet_config
 from pyams_portal.zmi.widget import PortletRendererFieldWidget
 from pyams_template.template import template_config
 from pyams_utils.adapter import adapter_config
@@ -31,7 +32,7 @@
 from pyams_zmi.form import AdminDialogEditForm, InnerAdminEditForm
 from pyramid.decorator import reify
 from z3c.form import field
-from zope.interface import Interface
+from zope.interface import implementer, Interface
 
 from pyams_portal import _
 
@@ -109,12 +110,13 @@
 
 
 #
-# Portlet renderer properties edit form
+# Portlet renderer settings edit form
 #
 
 @pagelet_config(name='renderer-properties.html', context=IPortletSettings, layer=IPyAMSLayer,
                 permission=MANAGE_TEMPLATE_PERMISSION)
 @ajax_config(name='renderer-properties.json', context=IPortletSettings, layer=IPyAMSLayer)
+@implementer(IPropertiesEditForm)
 class PortletRendererPropertiesEditForm(AdminDialogEditForm):
     """Portlet renderer properties edit form"""