Imports cleanup
authorThierry Florac <thierry.florac@onf.fr>
Mon, 03 Dec 2018 10:27:46 +0100
changeset 96 0d3ee20f86c2
parent 95 73237c888f18
child 97 20b1cbc4081d
Imports cleanup
src/pyams_thesaurus/zmi/extract.py
--- a/src/pyams_thesaurus/zmi/extract.py	Fri Nov 30 14:44:01 2018 +0100
+++ b/src/pyams_thesaurus/zmi/extract.py	Mon Dec 03 10:27:46 2018 +0100
@@ -12,42 +12,38 @@
 
 __docformat__ = 'restructuredtext'
 
-
-# import standard library
 from html import unescape
 
-# import interfaces
+from pyramid.exceptions import NotFound
+from pyramid.view import view_config
+from z3c.form import field
+from z3c.form.interfaces import DISPLAY_MODE
+from z3c.table.column import GetAttrColumn
+from z3c.table.interfaces import IColumn, IValues
+from zope.interface import Interface, alsoProvides
+
+from pyams_form.form import AJAXAddForm, AJAXEditForm
 from pyams_form.interfaces.form import IWidgetsPrefixViewletsManager
+from pyams_pagelet.pagelet import pagelet_config
+from pyams_skin.container import delete_container_element
 from pyams_skin.interfaces.viewlet import IWidgetTitleViewletManager
 from pyams_skin.layer import IPyAMSLayer
+from pyams_skin.table import ActionColumn, BaseTable, JsActionColumn, TrashColumn
+from pyams_skin.viewlet.toolbar import ToolbarAction
+from pyams_template.template import template_config
 from pyams_thesaurus.interfaces import ADMIN_THESAURUS_PERMISSION, MANAGE_THESAURUS_EXTRACT_PERMISSION
-from pyams_thesaurus.interfaces.thesaurus import IThesaurus, IThesaurusExtracts, IThesaurusExtractInfo, \
-    IThesaurusExtract, IThesaurusExtractRoles
+from pyams_thesaurus.interfaces.thesaurus import IThesaurus, IThesaurusExtract, IThesaurusExtractInfo, \
+    IThesaurusExtractRoles, IThesaurusExtracts
+from pyams_thesaurus.thesaurus import ThesaurusExtract
+from pyams_utils.adapter import ContextRequestViewAdapter, adapter_config
 from pyams_utils.interfaces import VIEW_PERMISSION, VIEW_SYSTEM_PERMISSION
 from pyams_utils.interfaces.data import IObjectData
 from pyams_utils.interfaces.tree import INode, ITree
-from pyams_zmi.layer import IAdminLayer
-from z3c.form.interfaces import DISPLAY_MODE
-from z3c.table.interfaces import IValues, IColumn
-
-# import packages
-from pyams_form.form import AJAXAddForm, AJAXEditForm
-from pyams_pagelet.pagelet import pagelet_config
-from pyams_template.template import template_config
-from pyams_thesaurus.thesaurus import ThesaurusExtract
-from pyams_skin.container import delete_container_element
-from pyams_skin.table import BaseTable, TrashColumn, ActionColumn, JsActionColumn
-from pyams_skin.viewlet.toolbar import ToolbarAction
-from pyams_utils.adapter import adapter_config, ContextRequestViewAdapter
 from pyams_utils.traversing import get_parent
 from pyams_utils.url import absolute_url
-from pyams_viewlet.viewlet import viewlet_config, Viewlet
-from pyams_zmi.form import AdminDialogAddForm, AdminDialogEditForm, AdminDialogDisplayForm
-from pyramid.exceptions import NotFound
-from pyramid.view import view_config
-from z3c.table.column import GetAttrColumn
-from z3c.form import field
-from zope.interface import alsoProvides, Interface
+from pyams_viewlet.viewlet import Viewlet, viewlet_config
+from pyams_zmi.form import AdminDialogAddForm, AdminDialogDisplayForm, AdminDialogEditForm
+from pyams_zmi.layer import IAdminLayer
 
 from pyams_thesaurus import _