* src/DbPrompter.py: Add NewNativeDbPrompter class for setting up

a native database. Enable opening any format on the startup.
* src/gramps_main.py: Use NewNativeDbPrompter when opening
non-native data.


svn: r3237
This commit is contained in:
Alex Roitman
2004-06-28 13:19:06 +00:00
parent fca58c0099
commit a35aa9bcf7
3 changed files with 107 additions and 12 deletions

View File

@@ -1475,7 +1475,7 @@ class Gramps:
"following dialog will let you select "
"the new database."),
self.topWindow)
DbPrompter.DbPrompter(self,1,self.topWindow,filename)
DbPrompter.NewNativeDbPrompter(self,self.topWindow,filename)
importData(self.db,filename)
self.import_tool_callback()
opened = 1
@@ -1531,9 +1531,12 @@ class Gramps:
opened = 0
for (importData,filter,mime_type) in Plugins._imports:
if filetype == mime_type or the_file == mime_type:
print mime_type
print "Keys before:", self.db.get_person_keys()
importData(self.db,filename)
self.import_tool_callback()
opened = 1
print "Keys after:", self.db.get_person_keys()
break
if not opened:
ErrorDialog( _("Could not open file: %s") % filename,