--- a/src/pyams_content/shared/imagemap/zmi/paragraph.py Fri Nov 10 12:03:41 2017 +0100
+++ b/src/pyams_content/shared/imagemap/zmi/paragraph.py Fri Nov 10 12:04:25 2017 +0100
@@ -19,7 +19,7 @@
from pyams_content.component.association.interfaces import IAssociationInfo
from pyams_content.component.paragraph.interfaces import IParagraphContainerTarget, IParagraphContainer, \
IParagraphSummary
-from pyams_content.component.paragraph.zmi.interfaces import IParagraphInnerEditor
+from pyams_content.component.paragraph.zmi.interfaces import IParagraphInnerEditor, IParagraphContainerView
from pyams_content.interfaces import MANAGE_CONTENT_PERMISSION
from pyams_content.shared.common.interfaces import IWfSharedContent
from pyams_content.shared.imagemap.interfaces import IImageMapParagraph
@@ -31,15 +31,14 @@
# import packages
from pyams_content.component.paragraph.zmi import BaseParagraphAJAXAddForm, BaseParagraphAJAXEditForm, \
- BaseParagraphAddMenu
-from pyams_content.component.paragraph.zmi.container import ParagraphContainerView
+ BaseParagraphAddMenu, BaseParagraphPropertiesEditForm
from pyams_content.shared.imagemap.paragraph import ImageMapParagraph
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, Viewlet
-from pyams_zmi.form import AdminDialogAddForm, AdminDialogEditForm
+from pyams_zmi.form import AdminDialogAddForm
from pyramid.view import view_config
from z3c.form import field, button
from zope.interface import implementer
@@ -47,7 +46,7 @@
from pyams_content import _
-@viewlet_config(name='add-imagemap-paragraph.menu', context=IParagraphContainerTarget, view=ParagraphContainerView,
+@viewlet_config(name='add-imagemap-paragraph.menu', context=IParagraphContainerTarget, view=IParagraphContainerView,
layer=IPyAMSLayer, manager=IToolbarAddingMenu, weight=80)
class ImagemapParagraphAddMenu(BaseParagraphAddMenu):
"""Image map paragraph add menu"""
@@ -85,7 +84,7 @@
@pagelet_config(name='properties.html', context=IImageMapParagraph, layer=IPyAMSLayer,
permission=MANAGE_CONTENT_PERMISSION)
-class ImagemapParagraphPropertiesEditForm(AdminDialogEditForm):
+class ImagemapParagraphPropertiesEditForm(BaseParagraphPropertiesEditForm):
"""Image map paragraph edit form"""
@property