* src/DbPrompter.py: provide a better error message of DB open failure

* src/const.py.in: Add Martin Hawlisch and Richard Tayor to author list


svn: r4300
This commit is contained in:
Don Allingham 2005-04-05 15:31:04 +00:00
parent 34490376db
commit 80810426f9
4 changed files with 18 additions and 2 deletions

View File

@ -8,4 +8,8 @@ Alex Roitman ** BookReport, command line, Gramps manual, bugfixes
Tim Waugh ** Comprehensive Ancestor report, docgen, Makefiles, bugfixes Tim Waugh ** Comprehensive Ancestor report, docgen, Makefiles, bugfixes
Martin Hawlisch - Filters
Richard Taylor - ScratchPad.py, GrampsDBCallback.py
$Id$ $Id$

View File

@ -1,3 +1,7 @@
2005-04-05 Don Allingham <don@gramps-project.org>
* src/DbPrompter.py: provide a better error message of DB open failure
* src/const.py.in: Add Martin Hawlisch and Richard Tayor to author list
2005-04-05 Martin Hawlisch <Martin.Hawlisch@gmx.de> 2005-04-05 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* src/PedView.py: Show Baptism/Burial as fallback for birth/death; Moved text * src/PedView.py: Show Baptism/Burial as fallback for birth/death; Moved text
generation for details view out of DispBox class so that PedigreeView can use the generation for details view out of DispBox class so that PedigreeView can use the

View File

@ -62,6 +62,8 @@ import WriteGrdb
import WriteXML import WriteXML
import WriteGedcom import WriteGedcom
from bsddb import db
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
# Constants # Constants
@ -194,9 +196,13 @@ class ExistingDbPrompter:
try: try:
if open_native(self.parent,filename,filetype): if open_native(self.parent,filename,filetype):
return True return True
except: except db.DBInvalidArgError, msg:
QuestionDialog.ErrorDialog( QuestionDialog.ErrorDialog(
_("Could not open file: %s") % filename) _("Could not open file: %s") % filename, msg[1])
return False
except:
import DisplayTrace
DisplayTrace.DisplayTrace()
return False return False
# The above native formats did not work, so we need to # The above native formats did not work, so we need to

View File

@ -144,6 +144,8 @@ comments = _("GRAMPS (Genealogical Research and Analysis "
authors = [ authors = [
"Donald N. Allingham", "Donald N. Allingham",
"Alexander Roitman", "Alexander Roitman",
"Richard Taylor",
"Martin Hawlisch",
"Tim Waugh", "Tim Waugh",
"Donald A. Peterson", "Donald A. Peterson",
"David Hampton", "David Hampton",