7092: API for reporting issues ["interim" solution, from Nick Hall]

svn: r23360
This commit is contained in:
Paul Franklin
2013-10-21 19:52:35 +00:00
parent a1c179d679
commit d1e4016769
2 changed files with 7 additions and 3 deletions

View File

@@ -210,6 +210,7 @@ register('interface.filter-editor-width', 400)
register('interface.filter-editor-height', 350) register('interface.filter-editor-height', 350)
register('interface.fullscreen', False) register('interface.fullscreen', False)
register('interface.height', 500) register('interface.height', 500)
register('interface.ignore-osmgpsmap', False)
register('interface.lds-height', 450) register('interface.lds-height', 450)
register('interface.lds-width', 600) register('interface.lds-width', 600)
register('interface.location-height', 250) register('interface.location-height', 250)

View File

@@ -38,9 +38,12 @@ try :
osmgpsmap.__version__) osmgpsmap.__version__)
except: except:
OSMGPSMAP = False OSMGPSMAP = False
import logging import config
logging.warning(_("WARNING: osmgpsmap module not loaded. " if not config.get('interface.ignore-osmgpsmap'):
"Geography functionality will not be available.")) from QuestionDialog import MessageHideDialog
title = _("OsmGpsMap module not loaded.")
message = _("Geography functionality will not be available.")
MessageHideDialog(title, message, 'interface.ignore-osmgpsmap')
if OSMGPSMAP: if OSMGPSMAP:
# Load the view only if osmgpsmap library is present. # Load the view only if osmgpsmap library is present.