* src/gramps_main.py: fix beta warning dialog
svn: r4499
This commit is contained in:
parent
f17c41cec6
commit
09c961bf10
@ -1,3 +1,6 @@
|
|||||||
|
2005-05-06 Don Allingham <don@gramps-project.org>
|
||||||
|
* src/gramps_main.py: fix beta warning dialog
|
||||||
|
|
||||||
2005-05-03 Don Allingham <don@gramps-project.org>
|
2005-05-03 Don Allingham <don@gramps-project.org>
|
||||||
* src/ListBox.py: added to CVS
|
* src/ListBox.py: added to CVS
|
||||||
* src/Makefile.am: added ListBox.py
|
* src/Makefile.am: added ListBox.py
|
||||||
|
@ -146,15 +146,7 @@ class Gramps(GrampsDBCallback.GrampsDBCallback):
|
|||||||
try:
|
try:
|
||||||
GrampsCfg.loadConfig()
|
GrampsCfg.loadConfig()
|
||||||
|
|
||||||
|
self.beta_warn()
|
||||||
if GrampsKeys.get_betawarn() == 0:
|
|
||||||
WarningDialog(_("Use at your own risk"),
|
|
||||||
_("This is an unstable development version of GRAMPS. "
|
|
||||||
"It is intended as a technology preview. Do not trust your "
|
|
||||||
"family database to this development version. This version may "
|
|
||||||
"contain bugs which could corrupt your database."))
|
|
||||||
GrampsKeys.save_betawarn(1)
|
|
||||||
GrampsKeys.sync()
|
|
||||||
|
|
||||||
self.RelClass = PluginMgr.relationship_class
|
self.RelClass = PluginMgr.relationship_class
|
||||||
self.relationship = self.RelClass(self.db)
|
self.relationship = self.RelClass(self.db)
|
||||||
@ -162,12 +154,18 @@ class Gramps(GrampsDBCallback.GrampsDBCallback):
|
|||||||
|
|
||||||
self.init_interface()
|
self.init_interface()
|
||||||
|
|
||||||
|
except OSError, msg:
|
||||||
|
ErrorDialog(_("Configuration error"),str(msg))
|
||||||
|
return
|
||||||
except Errors.GConfSchemaError, val:
|
except Errors.GConfSchemaError, val:
|
||||||
ErrorDialog(_("Configuration error"),
|
ErrorDialog(_("Configuration error"),
|
||||||
str(val) + _("\n\nPossibly the installation of GRAMPS was incomplete."
|
str(val) + _("\n\nPossibly the installation of GRAMPS was incomplete."
|
||||||
" Make sure the GConf schema of GRAMPS is properly installed."))
|
" Make sure the GConf schema of GRAMPS is properly installed."))
|
||||||
gtk.main_quit()
|
gtk.main_quit()
|
||||||
return
|
return
|
||||||
|
except:
|
||||||
|
DisplayTrace.DisplayTrace()
|
||||||
|
return
|
||||||
|
|
||||||
if not mime_type_is_defined(const.app_gramps):
|
if not mime_type_is_defined(const.app_gramps):
|
||||||
ErrorDialog(_("Configuration error"),
|
ErrorDialog(_("Configuration error"),
|
||||||
@ -207,6 +205,19 @@ class Gramps(GrampsDBCallback.GrampsDBCallback):
|
|||||||
|
|
||||||
self.db.set_researcher(GrampsCfg.get_researcher())
|
self.db.set_researcher(GrampsCfg.get_researcher())
|
||||||
|
|
||||||
|
def beta_warn(self):
|
||||||
|
if not GrampsKeys.get_betawarn():
|
||||||
|
return
|
||||||
|
WarningDialog(
|
||||||
|
"Use at your own risk",
|
||||||
|
"This is an unstable development version of GRAMPS. "
|
||||||
|
"It is intended as a technology preview. Do not trust "
|
||||||
|
"your family database to this development version. "
|
||||||
|
"This version may contain bugs which could corrupt "
|
||||||
|
"your database.")
|
||||||
|
GrampsKeys.save_betawarn(1)
|
||||||
|
GrampsKeys.sync()
|
||||||
|
|
||||||
def date_format_key_update(self,client,cnxn_id,entry,data):
|
def date_format_key_update(self,client,cnxn_id,entry,data):
|
||||||
GrampsCfg.set_calendar_date_format()
|
GrampsCfg.set_calendar_date_format()
|
||||||
self.familyview_key_update(client,cnxn_id,entry,data)
|
self.familyview_key_update(client,cnxn_id,entry,data)
|
||||||
|
Loading…
Reference in New Issue
Block a user