7088: provide a config option to suppress the warning about missing "sdn"
svn: r23206
This commit is contained in:
parent
17bb3fa639
commit
ef02b35311
@ -143,6 +143,7 @@ register('behavior.generation-depth', 15)
|
|||||||
register('behavior.ignore-gexiv2', False)
|
register('behavior.ignore-gexiv2', False)
|
||||||
register('behavior.ignore-osmgpsmap', False)
|
register('behavior.ignore-osmgpsmap', False)
|
||||||
register('behavior.ignore-spellcheck', False)
|
register('behavior.ignore-spellcheck', False)
|
||||||
|
register('behavior.ignore-sdn', False)
|
||||||
register('behavior.max-age-prob-alive', 110)
|
register('behavior.max-age-prob-alive', 110)
|
||||||
register('behavior.max-sib-age-diff', 20)
|
register('behavior.max-sib-age-diff', 20)
|
||||||
register('behavior.min-generation-years', 13)
|
register('behavior.min-generation-years', 13)
|
||||||
|
@ -581,6 +581,8 @@ try:
|
|||||||
#TODO maybe alias the other local invented wheels to Calendar convertors
|
#TODO maybe alias the other local invented wheels to Calendar convertors
|
||||||
|
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
from gramps.gen.config import config
|
||||||
|
if not config.get('behavior.ignore-sdn'):
|
||||||
import logging
|
import logging
|
||||||
LOG = logging.getLogger(".calendar")
|
LOG = logging.getLogger(".calendar")
|
||||||
LOG.warn("sdn not available. "
|
LOG.warn("sdn not available. "
|
||||||
|
@ -621,6 +621,10 @@ class GrampsPreferences(ConfigureDialog):
|
|||||||
table, _('Suppress warning when spell checking not installed.'),
|
table, _('Suppress warning when spell checking not installed.'),
|
||||||
6, 'behavior.ignore-spellcheck')
|
6, 'behavior.ignore-spellcheck')
|
||||||
|
|
||||||
|
self.add_checkbox(
|
||||||
|
table, _("Suppress warning when 'sdn' not installed."),
|
||||||
|
7, 'behavior.ignore-sdn')
|
||||||
|
|
||||||
return _('Warnings'), table
|
return _('Warnings'), table
|
||||||
|
|
||||||
def _build_name_format_model(self, active):
|
def _build_name_format_model(self, active):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user