* src/ViewManager.py: fix message

* src/Config/_GrampsConfigKeys.py: set default value
	* src/QuestionDialog.py: set value from config
	* data/gramps.schemas.in: fix default value


svn: r7331
This commit is contained in:
Don Allingham 2006-09-26 04:08:41 +00:00
parent 0d820794d5
commit 34e0362a8b
5 changed files with 14 additions and 10 deletions

View File

@ -1,4 +1,8 @@
2006-09-25 Don Allingham <don@gramps-project.org> 2006-09-25 Don Allingham <don@gramps-project.org>
* src/ViewManager.py: fix message
* src/Config/_GrampsConfigKeys.py: set default value
* src/QuestionDialog.py: set value from config
* data/gramps.schemas.in: fix default value
* src/GrampsDb/_GrampsDBCallback.py: catch db transaction problem * src/GrampsDb/_GrampsDBCallback.py: catch db transaction problem
* src/GrampsCfg.py: reset PORT_WARN when TRANSACTION re-enabled * src/GrampsCfg.py: reset PORT_WARN when TRANSACTION re-enabled
* src/QuestionDialog.py: sync changes to config value * src/QuestionDialog.py: sync changes to config value

View File

@ -673,11 +673,11 @@
</schema> </schema>
<schema> <schema>
<key>/schemas/apps/gramps/behavior/port-warn</key> <key>/schemas/apps/gramps/preferences/port-warn</key>
<applyto>/apps/gramps/behavior/port-warn</applyto> <applyto>/apps/gramps/preferences/port-warn</applyto>
<owner>gramps</owner> <owner>gramps</owner>
<type>bool</type> <type>bool</type>
<default>1</default> <default>0</default>
<locale name="C"> <locale name="C">
<short>Enables the display of portability warning</short> <short>Enables the display of portability warning</short>
<long>Enables the display of portability warning.</long> <long>Enables the display of portability warning.</long>

View File

@ -86,7 +86,7 @@ default_value = {
TODO_COLOR : '#ff0000', TODO_COLOR : '#ff0000',
CUSTOM_MARKER_COLOR : '#8b008b', CUSTOM_MARKER_COLOR : '#8b008b',
FAMILY_WARN : True, FAMILY_WARN : True,
PORT_WARN : True, PORT_WARN : False,
HIDE_EP_MSG : False, HIDE_EP_MSG : False,
LAST_VIEW : 0, LAST_VIEW : 0,
FAMILY_SIBLINGS : True, FAMILY_SIBLINGS : True,

View File

@ -262,6 +262,7 @@ class MessageHideDialog:
glade_xml = gtk.glade.XML(const.gladeFile, "hide_dialog", "gramps") glade_xml = gtk.glade.XML(const.gladeFile, "hide_dialog", "gramps")
top = glade_xml.get_widget('hide_dialog') top = glade_xml.get_widget('hide_dialog')
dont_show = glade_xml.get_widget('dont_show') dont_show = glade_xml.get_widget('dont_show')
dont_show.set_active(Config.get(key))
title_label = glade_xml.get_widget('title') title_label = glade_xml.get_widget('title')
title_label.set_text( title_label.set_text(
'<span size="larger" weight="bold">%s</span>' % title) '<span size="larger" weight="bold">%s</span>' % title)

View File

@ -1054,22 +1054,21 @@ def check_for_portability_problems(filetype):
# sys.version_info variable # sys.version_info variable
version = (sys.version_info[0],sys.version_info[1]) version = (sys.version_info[0],sys.version_info[1])
if version < (2, 5) and not Config.get(Config.PORT_WARN):
if version < (2, 5) and Config.get(Config.PORT_WARN):
QuestionDialog.MessageHideDialog( QuestionDialog.MessageHideDialog(
_('Database is not portable'), _('Database is not portable'),
_('Your system is running an old version of python. This ' _('Your system is running an old version of python. This '
'prevents you from being able to copy your database to ' 'prevents you from being able to copy your database to '
'other machines. For most people, this is not a problem.\n\n' 'other machines. For most people, this is not a problem.\n\n'
'If you need to transfer the database to another machine, ' 'If you need to transfer the database to another machine, '
'export to GRAMPS Package, and import the GRAMPS Package ' 'export to a GRAMPS Package, and import the GRAMPS Package '
'on the other machine.\n\nIf you feel you need to be able ' 'on the other machine.\n\nIf you feel you need to be able '
'to transfer this file between machines without exporting, ' 'to transfer this file between machines without exporting, '
'you need to either upgrade to version 2.5 of python, or ' 'you need to either upgrade to version 2.5 of python, or '
'disable transactions in the preferences menu. Disabling ' 'disable transactions in the preferences menu. Disabling '
'transactions will slow down your performance, and may allow ' 'transactions will slow down your performance, and may '
'your database to become corrupted if an error occurs while ' 'allow your database to become corrupted if an error '
'data is being saved'), 'occurs while data is being saved'),
Config.PORT_WARN) Config.PORT_WARN)