* src/DbPrompter.py (NewNativeDbPrompter.chooser):

Initialize natvie database before attempting to load.


svn: r3886
This commit is contained in:
Alex Roitman 2005-01-08 21:52:57 +00:00
parent 894aa1d810
commit 06ffc847e9
2 changed files with 4 additions and 1 deletions

View File

@ -9,6 +9,8 @@
get_family_from_gramps_id,get_place_from_gramps_id,
get_source_from_gramps_id,get_object_from_gramps_id):
Unserialize tuple and return a proper GRAMPS object.
* src/DbPrompter.py (NewNativeDbPrompter.chooser):
Initialize natvie database before attempting to load.
2005-01-07 Don Allingham <dallingham@users.sourceforge.net>
* src/gramps.glade: removal of more OptionMenus in favor

View File

@ -1,7 +1,7 @@
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2004 Donald N. Allingham
# Copyright (C) 2000-2005 Donald N. Allingham
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -357,6 +357,7 @@ class NewNativeDbPrompter:
if os.path.splitext(filename)[1] != ".grdb":
filename = filename + ".grdb"
choose.destroy()
self.parent.db = GrampsBSDDB.GrampsBSDDB()
self.parent.read_file(filename)
# Add the file to the recent items
RecentFiles.recent_files(filename,const.app_gramps)