Format cleanup
authorThierry Florac <tflorac@ulthar.net>
Fri, 18 Oct 2019 15:11:52 +0200
changeset 1374 0bf83e0553c4
parent 1373 a845b564608f
child 1375 112904420dc2
Format cleanup
src/pyams_content/shared/view/portlet/zmi/__init__.py
--- a/src/pyams_content/shared/view/portlet/zmi/__init__.py	Fri Oct 18 12:46:26 2019 +0200
+++ b/src/pyams_content/shared/view/portlet/zmi/__init__.py	Fri Oct 18 15:11:52 2019 +0200
@@ -10,26 +10,22 @@
 # FOR A PARTICULAR PURPOSE.
 #
 
-__docformat__ = 'restructuredtext'
+from zope.interface import Interface
+
+from pyams_content.shared.view.portlet.interfaces import IViewItemsPortletSettings
+from pyams_form.form import AJAXEditForm
+from pyams_pagelet.interfaces import IPagelet
+from pyams_pagelet.pagelet import pagelet_config
+from pyams_portal.interfaces import IPortletPreviewer
+from pyams_portal.portlet import PortletPreviewer
+from pyams_portal.zmi.portlet import PortletSettingsEditor
+from pyams_skin.layer import IPyAMSLayer
+from pyams_template.template import template_config
+from pyams_utils.adapter import adapter_config
+from pyams_utils.interfaces import VIEW_SYSTEM_PERMISSION
 
 
-# import standard library
-
-# import interfaces
-from pyams_content.shared.view.portlet.interfaces import IViewItemsPortletSettings
-from pyams_pagelet.interfaces import IPagelet
-from pyams_portal.interfaces import IPortletPreviewer
-from pyams_skin.layer import IPyAMSLayer
-from pyams_utils.interfaces import VIEW_SYSTEM_PERMISSION
-
-# import packages
-from pyams_form.form import AJAXEditForm
-from pyams_pagelet.pagelet import pagelet_config
-from pyams_portal.portlet import PortletPreviewer
-from pyams_portal.zmi.portlet import PortletSettingsEditor
-from pyams_template.template import template_config
-from pyams_utils.adapter import adapter_config
-from zope.interface import Interface
+__docformat__ = 'restructuredtext'
 
 
 @pagelet_config(name='properties.html', context=IViewItemsPortletSettings, layer=IPyAMSLayer,
@@ -40,12 +36,14 @@
     settings = IViewItemsPortletSettings
 
 
-@adapter_config(name='properties.json', context=(IViewItemsPortletSettings, IPyAMSLayer), provides=IPagelet)
+@adapter_config(name='properties.json', context=(IViewItemsPortletSettings, IPyAMSLayer),
+                provides=IPagelet)
 class ViewItemsPortletSettingsAJAXEditor(AJAXEditForm, ViewItemsPortletSettingsEditor):
     """View items portlet settings editor, JSON renderer"""
 
 
-@adapter_config(context=(Interface, IPyAMSLayer, Interface, IViewItemsPortletSettings), provides=IPortletPreviewer)
+@adapter_config(context=(Interface, IPyAMSLayer, Interface, IViewItemsPortletSettings),
+                provides=IPortletPreviewer)
 @template_config(template='templates/view-items-list-preview.pt', layer=IPyAMSLayer)
 class ViewItemsPortletPreviewer(PortletPreviewer):
     """View items portlet previewer"""