error handling
svn: r4540
This commit is contained in:
parent
bdf458406a
commit
cab8c00936
@ -1,3 +1,8 @@
|
|||||||
|
2005-05-10 Don Allingham <don@gramps-project.org>
|
||||||
|
* src/StartupDialog.py: check for broken Slackware library, and
|
||||||
|
missing gconf installation, present error messages instead of
|
||||||
|
tracebacks
|
||||||
|
|
||||||
2005-05-10 Alex Roitman <shura@gramps-project.org>
|
2005-05-10 Alex Roitman <shura@gramps-project.org>
|
||||||
* src/data/gramps.schemas: Add a welcome key.
|
* src/data/gramps.schemas: Add a welcome key.
|
||||||
* src/GrampsGconfKeys.py: Add get/set methods for welcome key.
|
* src/GrampsGconfKeys.py: Add get/set methods for welcome key.
|
||||||
|
@ -134,7 +134,22 @@ class StartupDialog:
|
|||||||
self.logo = gtk.gdk.pixbuf_new_from_file("%s/gramps.png" % const.rootDir)
|
self.logo = gtk.gdk.pixbuf_new_from_file("%s/gramps.png" % const.rootDir)
|
||||||
self.splash = gtk.gdk.pixbuf_new_from_file("%s/splash.jpg" % const.rootDir)
|
self.splash = gtk.gdk.pixbuf_new_from_file("%s/splash.jpg" % const.rootDir)
|
||||||
|
|
||||||
|
try:
|
||||||
d = gnome.ui.Druid()
|
d = gnome.ui.Druid()
|
||||||
|
except AttributeError:
|
||||||
|
ErrorDialog(_("Broken GNOME libraries"),
|
||||||
|
_("GRAMPS has detected an incomplete gnome-python "
|
||||||
|
"library, which is required by GRAMPS. This is "
|
||||||
|
"frequently seen on Slackware systems, due to the "
|
||||||
|
"lack of support for GNOME in the Slackware "
|
||||||
|
"environment. If you are running Slackware, this "
|
||||||
|
"problem can be resolved by installing Dropline "
|
||||||
|
"GNOME (http://www.dropline.net/gnome/). If you "
|
||||||
|
"are running another distribution, please check "
|
||||||
|
"your GNOME configuration."))
|
||||||
|
gtk.main_quit()
|
||||||
|
|
||||||
|
|
||||||
self.w.add(d)
|
self.w.add(d)
|
||||||
try:
|
try:
|
||||||
d.add(self.build_page1())
|
d.add(self.build_page1())
|
||||||
@ -237,6 +252,7 @@ class StartupDialog:
|
|||||||
box.add(table)
|
box.add(table)
|
||||||
box.show_all()
|
box.show_all()
|
||||||
|
|
||||||
|
|
||||||
name = GrampsKeys.get_researcher_name()
|
name = GrampsKeys.get_researcher_name()
|
||||||
if not name or name.strip() == "":
|
if not name or name.strip() == "":
|
||||||
import pwd
|
import pwd
|
||||||
@ -248,6 +264,8 @@ class StartupDialog:
|
|||||||
name = ""
|
name = ""
|
||||||
|
|
||||||
self.name.set_text(name)
|
self.name.set_text(name)
|
||||||
|
|
||||||
|
try:
|
||||||
self.addr.set_text(GrampsKeys.get_researcher_addr())
|
self.addr.set_text(GrampsKeys.get_researcher_addr())
|
||||||
self.city.set_text(GrampsKeys.get_researcher_city())
|
self.city.set_text(GrampsKeys.get_researcher_city())
|
||||||
self.state.set_text(GrampsKeys.get_researcher_state())
|
self.state.set_text(GrampsKeys.get_researcher_state())
|
||||||
@ -255,7 +273,17 @@ class StartupDialog:
|
|||||||
self.country.set_text(GrampsKeys.get_researcher_country())
|
self.country.set_text(GrampsKeys.get_researcher_country())
|
||||||
self.phone.set_text(GrampsKeys.get_researcher_phone())
|
self.phone.set_text(GrampsKeys.get_researcher_phone())
|
||||||
self.email.set_text(GrampsKeys.get_researcher_email())
|
self.email.set_text(GrampsKeys.get_researcher_email())
|
||||||
|
except:
|
||||||
|
ErrorDialog(_("Configuration/Installation error"),
|
||||||
|
_("The gconf schemas were not found. First, try "
|
||||||
|
"executing 'pkill gconfd' and try starting gramps "
|
||||||
|
"again. If this does not help then the schemas "
|
||||||
|
"were not properly installed. If you have not "
|
||||||
|
"done 'make install' or if you installed without "
|
||||||
|
"being a root, this is most likely a cause of the "
|
||||||
|
"problem. Please read the INSTALL file in the "
|
||||||
|
"top-level source directory."))
|
||||||
|
gtk.main_quit()
|
||||||
return p
|
return p
|
||||||
|
|
||||||
def build_page5(self):
|
def build_page5(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user