# HG changeset patch # User tflorac@dagon.home # Date 1536484662 -7200 # Node ID d39947a2130bacaec71be3d34177ab4605cc72f0 # Parent 2e2015661809563ea2fe12d2de8ba4f99059da5e Updated imports to check for GIS availability diff -r 2e2015661809 -r d39947a2130b src/pyams_default_theme/component/paragraph/map.py --- a/src/pyams_default_theme/component/paragraph/map.py Fri Sep 07 17:23:51 2018 +0200 +++ b/src/pyams_default_theme/component/paragraph/map.py Sun Sep 09 11:17:42 2018 +0200 @@ -13,14 +13,14 @@ __docformat__ = 'restructuredtext' -from pyams_content.component.paragraph.interfaces.map import have_gis, IMapParagraph +from pyams_content.component.paragraph.interfaces.map import have_gis if have_gis: # import standard library # import interfaces from pyams_content.features.renderer.interfaces import IContentRenderer - from pyams_default_theme.component.paragraph.interfaces.map import IMapParagraphDefaultRendererSettings + from pyams_default_theme.component.paragraph.interfaces.map import IMapParagraph, IMapParagraphDefaultRendererSettings from pyams_gis.interfaces.configuration import IMapConfiguration from pyams_gis.interfaces.utility import IMapManager from pyams_skin.layer import IPyAMSLayer