* 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:
parent
17431a9f82
commit
fb6b42d549
@ -1,4 +1,8 @@
|
||||
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/GrampsCfg.py: reset PORT_WARN when TRANSACTION re-enabled
|
||||
* src/QuestionDialog.py: sync changes to config value
|
||||
|
@ -673,11 +673,11 @@
|
||||
</schema>
|
||||
|
||||
<schema>
|
||||
<key>/schemas/apps/gramps/behavior/port-warn</key>
|
||||
<applyto>/apps/gramps/behavior/port-warn</applyto>
|
||||
<key>/schemas/apps/gramps/preferences/port-warn</key>
|
||||
<applyto>/apps/gramps/preferences/port-warn</applyto>
|
||||
<owner>gramps</owner>
|
||||
<type>bool</type>
|
||||
<default>1</default>
|
||||
<default>0</default>
|
||||
<locale name="C">
|
||||
<short>Enables the display of portability warning</short>
|
||||
<long>Enables the display of portability warning.</long>
|
||||
|
@ -86,7 +86,7 @@ default_value = {
|
||||
TODO_COLOR : '#ff0000',
|
||||
CUSTOM_MARKER_COLOR : '#8b008b',
|
||||
FAMILY_WARN : True,
|
||||
PORT_WARN : True,
|
||||
PORT_WARN : False,
|
||||
HIDE_EP_MSG : False,
|
||||
LAST_VIEW : 0,
|
||||
FAMILY_SIBLINGS : True,
|
||||
|
@ -262,6 +262,7 @@ class MessageHideDialog:
|
||||
glade_xml = gtk.glade.XML(const.gladeFile, "hide_dialog", "gramps")
|
||||
top = glade_xml.get_widget('hide_dialog')
|
||||
dont_show = glade_xml.get_widget('dont_show')
|
||||
dont_show.set_active(Config.get(key))
|
||||
title_label = glade_xml.get_widget('title')
|
||||
title_label.set_text(
|
||||
'<span size="larger" weight="bold">%s</span>' % title)
|
||||
|
@ -1054,22 +1054,21 @@ def check_for_portability_problems(filetype):
|
||||
# sys.version_info variable
|
||||
|
||||
version = (sys.version_info[0],sys.version_info[1])
|
||||
|
||||
if version < (2, 5) and Config.get(Config.PORT_WARN):
|
||||
if version < (2, 5) and not Config.get(Config.PORT_WARN):
|
||||
QuestionDialog.MessageHideDialog(
|
||||
_('Database is not portable'),
|
||||
_('Your system is running an old version of python. This '
|
||||
'prevents you from being able to copy your database to '
|
||||
'other machines. For most people, this is not a problem.\n\n'
|
||||
'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 '
|
||||
'to transfer this file between machines without exporting, '
|
||||
'you need to either upgrade to version 2.5 of python, or '
|
||||
'disable transactions in the preferences menu. Disabling '
|
||||
'transactions will slow down your performance, and may allow '
|
||||
'your database to become corrupted if an error occurs while '
|
||||
'data is being saved'),
|
||||
'transactions will slow down your performance, and may '
|
||||
'allow your database to become corrupted if an error '
|
||||
'occurs while data is being saved'),
|
||||
Config.PORT_WARN)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user