diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index f0fba2139..9a4133984 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2005-05-03 Don Allingham + * src/gramps_main.py: remove beta warning, handle OSError + on config open + 2005-05-03 Tino Meinen * src/po/nl.po: Updated Dutch translation diff --git a/gramps2/src/gramps_main.py b/gramps2/src/gramps_main.py index da4366c72..adcef6126 100755 --- a/gramps2/src/gramps_main.py +++ b/gramps2/src/gramps_main.py @@ -146,28 +146,25 @@ class Gramps(GrampsDBCallback.GrampsDBCallback): try: GrampsCfg.loadConfig() - - 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.beta_warn() self.RelClass = PluginMgr.relationship_class self.relationship = self.RelClass(self.db) self.gtop = gtk.glade.XML(const.gladeFile, "gramps", "gramps") self.init_interface() + except OSError,msg: + ErrorDialog(_("Configuration error"),str(msg)) + return except Errors.GConfSchemaError, val: ErrorDialog(_("Configuration error"), str(val) + _("\n\nPossibly the installation of GRAMPS was incomplete." " Make sure the GConf schema of GRAMPS is properly installed.")) gtk.main_quit() return + except: + DisplayTrace.DisplayTrace() + return if not mime_type_is_defined(const.app_gramps): ErrorDialog(_("Configuration error"), @@ -207,6 +204,18 @@ class Gramps(GrampsDBCallback.GrampsDBCallback): self.db.set_researcher(GrampsCfg.get_researcher()) + def beta_warn(self): + return + 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): GrampsCfg.set_calendar_date_format() self.familyview_key_update(client,cnxn_id,entry,data)