Imports cleanup
authorThierry Florac <thierry.florac@onf.fr>
Wed, 07 Mar 2018 09:59:02 +0100
changeset 448 1629885a2e95
parent 447 3665317b6009
child 449 3b5cf400af18
Imports cleanup
src/pyams_content/component/association/zmi/paragraph.py
--- a/src/pyams_content/component/association/zmi/paragraph.py	Wed Mar 07 09:49:47 2018 +0100
+++ b/src/pyams_content/component/association/zmi/paragraph.py	Wed Mar 07 09:59:02 2018 +0100
@@ -9,7 +9,6 @@
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
 #
-from pyams_content.features.renderer.zmi import BaseRenderedContentPreview
 
 __docformat__ = 'restructuredtext'
 
@@ -17,8 +16,7 @@
 # import standard library
 
 # import interfaces
-from pyams_content.component.association.interfaces import IAssociationParagraph, IAssociationContainer, \
-    IAssociationInfo, ASSOCIATION_PARAGRAPH_TYPE
+from pyams_content.component.association.interfaces import IAssociationParagraph, ASSOCIATION_PARAGRAPH_TYPE
 from pyams_content.component.association.zmi.interfaces import IAssociationsParentForm
 from pyams_content.component.paragraph.interfaces import IParagraphContainerTarget, IParagraphContainer, \
     IParagraphPreview
@@ -35,12 +33,12 @@
 from pyams_content.component.association.paragraph import AssociationParagraph
 from pyams_content.component.paragraph.zmi import BaseParagraphAJAXAddForm, BaseParagraphAJAXEditForm, \
     BaseParagraphAddMenu, BaseParagraphPropertiesEditForm
+from pyams_content.features.renderer.zmi import BaseRenderedContentPreview
 from pyams_content.features.renderer.zmi.widget import RendererFieldWidget
 from pyams_pagelet.pagelet import pagelet_config
-from pyams_template.template import template_config
 from pyams_utils.adapter import adapter_config
 from pyams_utils.traversing import get_parent
-from pyams_viewlet.viewlet import viewlet_config, BaseContentProvider
+from pyams_viewlet.viewlet import viewlet_config
 from pyams_zmi.form import AdminDialogAddForm
 from pyramid.view import view_config
 from z3c.form import field, button
@@ -50,7 +48,7 @@
 
 
 @viewlet_config(name='add-association-paragraph.menu', context=IParagraphContainerTarget, view=IParagraphContainerView,
-                layer=IPyAMSLayer, manager=IToolbarAddingMenu, weight=95)
+                layer=IPyAMSLayer, manager=IToolbarAddingMenu, weight=90)
 class AssociationParagraphAddMenu(BaseParagraphAddMenu):
     """Associations paragraph add menu"""