10 # FOR A PARTICULAR PURPOSE. |
10 # FOR A PARTICULAR PURPOSE. |
11 # |
11 # |
12 |
12 |
13 __docformat__ = 'restructuredtext' |
13 __docformat__ = 'restructuredtext' |
14 |
14 |
15 |
|
16 from pyams_content.component.paragraph.interfaces.map import have_gis |
15 from pyams_content.component.paragraph.interfaces.map import have_gis |
17 if have_gis: |
16 if have_gis: |
18 |
17 |
19 # import standard library |
|
20 |
|
21 # import interfaces |
|
22 from pyams_content.component.paragraph.interfaces import IParagraphContainerTarget, IParagraphContainer, \ |
18 from pyams_content.component.paragraph.interfaces import IParagraphContainerTarget, IParagraphContainer, \ |
23 IBaseParagraph, PARAGRAPH_HIDDEN_FIELDS |
19 IBaseParagraph, PARAGRAPH_HIDDEN_FIELDS |
24 from pyams_content.component.paragraph.interfaces.map import MAP_PARAGRAPH_TYPE, IMapParagraph |
20 from pyams_content.component.paragraph.interfaces.map import MAP_PARAGRAPH_TYPE, IMapParagraph |
25 from pyams_content.component.paragraph.zmi.interfaces import IParagraphInnerEditor |
21 from pyams_content.component.paragraph.zmi.interfaces import IParagraphInnerEditor |
26 from pyams_content.interfaces import MANAGE_CONTENT_PERMISSION |
22 from pyams_content.interfaces import MANAGE_CONTENT_PERMISSION |
27 from pyams_form.interfaces.form import IInnerForm |
23 from pyams_form.interfaces.form import IInnerForm |
28 from pyams_skin.interfaces.viewlet import IToolbarAddingMenu |
24 from pyams_skin.interfaces.viewlet import IToolbarAddingMenu |
29 from pyams_skin.layer import IPyAMSLayer |
25 from pyams_skin.layer import IPyAMSLayer |
30 from z3c.form.interfaces import INPUT_MODE |
26 from z3c.form.interfaces import INPUT_MODE |
31 |
27 |
32 # import packages |
|
33 from pyams_content.component.paragraph.map import MapParagraph |
28 from pyams_content.component.paragraph.map import MapParagraph |
34 from pyams_content.component.paragraph.zmi import IParagraphContainerView, BaseParagraphAddMenu, \ |
29 from pyams_content.component.paragraph.zmi import IParagraphContainerView, BaseParagraphAddMenu, \ |
35 BaseParagraphAJAXAddForm, BaseParagraphAJAXEditForm, BaseParagraphPropertiesEditForm, \ |
30 BaseParagraphAJAXAddForm, BaseParagraphAJAXEditForm, BaseParagraphPropertiesEditForm, \ |
36 IParagraphEditFormButtons, get_json_paragraph_refresh_event |
31 get_json_paragraph_refresh_event, IParagraphInnerEditFormButtons |
37 from pyams_content.features.renderer.zmi.widget import RendererFieldWidget |
32 from pyams_content.features.renderer.zmi.widget import RendererFieldWidget |
38 from pyams_form.form import ajax_config |
33 from pyams_form.form import ajax_config |
39 from pyams_pagelet.pagelet import pagelet_config |
34 from pyams_pagelet.pagelet import pagelet_config |
40 from pyams_skin.event import get_json_form_refresh_event |
35 from pyams_skin.event import get_json_form_refresh_event |
41 from pyams_utils.adapter import adapter_config |
36 from pyams_utils.adapter import adapter_config |