Organized imports
authorThierry Florac <thierry.florac@onf.fr>
Mon, 02 Mar 2015 09:51:18 +0100
changeset 1 91b1aa9ced92
parent 0 94ee60dd51e1
child 2 68423cd701bb
Organized imports
src/pyams_ldap/zmi/plugin.py
--- a/src/pyams_ldap/zmi/plugin.py	Sat Feb 28 15:20:14 2015 +0100
+++ b/src/pyams_ldap/zmi/plugin.py	Mon Mar 02 09:51:18 2015 +0100
@@ -9,23 +9,34 @@
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
 #
-from pyramid.view import view_config
+
+__docformat__ = 'restructuredtext'
+
+
+# import standard library
+import base64
+import ldap3
+
+# import interfaces
+from pyams_form.interfaces.form import IInnerTabForm, IWidgetsSuffixViewletsManager
+from pyams_ldap.interfaces import ILDAPPlugin
+from pyams_security.interfaces import ISecurityManager, IPlugin
+from pyams_security.zmi.interfaces import ISecurityManagerToolbarAddingMenu
+from pyams_skin.interfaces import IPageHeader
+from pyams_skin.layer import IPyAMSLayer
+from pyams_zmi.interfaces import IAdminView
+from pyams_zmi.layer import IAdminLayer
 from z3c.form.interfaces import DISPLAY_MODE
-from z3c.table.column import GetAttrColumn
 from z3c.table.interfaces import IColumn
 from zope.component.interfaces import ISite
+
+# import packages
 from pyams_form.form import AJAXAddForm, AJAXEditForm, InnerEditForm, InnerAddForm
-from pyams_form.interfaces.form import IInnerTabForm, IWidgetsSuffixViewletsManager
 from pyams_form.search import SearchView, SearchResultsView
-from pyams_ldap.interfaces import ILDAPPlugin
 from pyams_ldap.plugin import LDAPPlugin
 from pyams_ldap.query import LDAPQuery
 from pyams_pagelet.pagelet import pagelet_config
-from pyams_security.interfaces import ISecurityManager, IPlugin
-from pyams_security.zmi.interfaces import ISecurityManagerToolbarAddingMenu
 from pyams_security.zmi.utility import SecurityManagerPluginsTable
-from pyams_skin.interfaces import IPageHeader
-from pyams_skin.layer import IPyAMSLayer
 from pyams_skin.skin import apply_skin
 from pyams_skin.table import I18nColumn
 from pyams_skin.viewlet.toolbar import ToolbarMenuItem
@@ -35,21 +46,10 @@
 from pyams_utils.url import absolute_url
 from pyams_viewlet.viewlet import viewlet_config, Viewlet
 from pyams_zmi.form import AdminDialogAddForm, AdminDialogEditForm, AdminDialogDisplayForm
-from pyams_zmi.interfaces import IAdminView
-from pyams_zmi.layer import IAdminLayer
 from pyams_zmi.view import AdminView
-
-__docformat__ = 'restructuredtext'
-
-
-# import standard library
-import base64
-import ldap3
-
-# import interfaces
-
-# import packages
+from pyramid.view import view_config
 from z3c.form import field
+from z3c.table.column import GetAttrColumn
 from zope.interface import implementer, Interface
 
 from pyams_ldap import _