* src/StartupDialog.py (__init__): Catch Schema errors

svn: r4436
This commit is contained in:
Martin Hawlisch 2005-04-27 19:48:24 +00:00
parent 62af2a64fc
commit 32aae7d0e7
2 changed files with 15 additions and 5 deletions

View File

@ -1,6 +1,7 @@
2005-04-27 Martin Hawlisch <Martin.Hawlisch@gmx.de> 2005-04-27 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* src/gramps_main.py (__init__): Avoid TypeError in schema error * src/gramps_main.py (__init__): Avoid TypeError in schema error
message message
* src/StartupDialog.py (__init__): Catch Schema errors
2005-04-26 Alex Roitman <shura@gramps-project.org> 2005-04-26 Alex Roitman <shura@gramps-project.org>
* NEWS, configure.in, src/EditPerson.py, src/EditSource.py, * NEWS, configure.in, src/EditPerson.py, src/EditSource.py,

View File

@ -27,6 +27,7 @@ import gnome
import gnome.ui import gnome.ui
import GrampsKeys import GrampsKeys
from QuestionDialog import ErrorDialog
from gettext import gettext as _ from gettext import gettext as _
@ -51,10 +52,18 @@ class StartupDialog:
d = gnome.ui.Druid() d = gnome.ui.Druid()
self.w.add(d) self.w.add(d)
d.add(self.build_page1()) try:
d.add(self.build_page2()) d.add(self.build_page1())
d.add(self.build_page5()) d.add(self.build_page2())
d.add(self.build_page_last()) d.add(self.build_page5())
d.add(self.build_page_last())
except:
ErrorDialog(_("Configuration error"),
_("\n\nPossibly the installation of GRAMPS was incomplete."
" Make sure the GConf schema of GRAMPS is properly installed."))
gtk.main_quit()
return
d.connect('cancel',self.close) d.connect('cancel',self.close)
self.w.connect("delete_event", gtk.main_quit) self.w.connect("delete_event", gtk.main_quit)