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

svn: r23301
This commit is contained in:
Paul Franklin 2013-10-11 00:01:10 +00:00
parent 9780abd304
commit dc0deae09e
3 changed files with 19 additions and 10 deletions

View File

@ -212,6 +212,8 @@ register('interface.filter-editor-height', 350)
register('interface.fullscreen', False) register('interface.fullscreen', False)
register('interface.grampletbar-close', False) register('interface.grampletbar-close', False)
register('interface.height', 500) register('interface.height', 500)
register('interface.ignore-gexiv2', False)
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

@ -405,13 +405,16 @@ if available:
navtypes=["Media"], navtypes=["Media"],
) )
else: else:
import logging from gramps.gen.config import config
logging.warning(_("GExiv2 module not loaded. Image metadata " from gramps.gui.dialog import MessageHideDialog
"functionality will not be available.\n" if not config.get('interface.ignore-gexiv2'):
"To build it for Gramps see " title = _("GExiv2 module not loaded.")
"http://www.gramps-project.org/wiki/index.php?" message = _("Image metadata functionality will not be available.\n"
"title=GEPS_029:_GTK3-GObject_introspection" "To build it for Gramps see "
"_Conversion#GExiv2_for_Image_metadata")) "http://www.gramps-project.org/wiki/index.php?"
"title=GEPS_029:_GTK3-GObject_introspection"
"_Conversion#GExiv2_for_Image_metadata")
MessageHideDialog(title, message, 'interface.ignore-gexiv2')
register(GRAMPLET, register(GRAMPLET,
id="Person Residence", id="Person Residence",

View File

@ -58,12 +58,16 @@ if repository.enumerate_versions("OsmGpsMap"):
pass pass
if not OSMGPSMAP: if not OSMGPSMAP:
_LOG.warning(_("OsmGpsMap module not loaded. " from gramps.gen.config import config
"Geography functionality will not be available.\n" from gramps.gui.dialog import MessageHideDialog
if not config.get('interface.ignore-osmgpsmap'):
title = _("OsmGpsMap module not loaded.")
message = _("Geography functionality will not be available.\n"
"To build it for Gramps see " "To build it for Gramps see "
"http://www.gramps-project.org/wiki/index.php?" "http://www.gramps-project.org/wiki/index.php?"
"title=GEPS_029:_GTK3-GObject_introspection_Conversion" "title=GEPS_029:_GTK3-GObject_introspection_Conversion"
"#OsmGpsMap_for_Geography")) "#OsmGpsMap_for_Geography")
MessageHideDialog(title, message, 'interface.ignore-osmgpsmap')
else: else:
# Load the view only if osmgpsmap library is present. # Load the view only if osmgpsmap library is present.
register(VIEW, register(VIEW,