Open and close a new DB right after creation in order to write the DB version

number into it's metadata.


svn: r10483
This commit is contained in:
Zsolt Foldvari 2008-04-05 21:10:38 +00:00
parent 30bf53e831
commit 897a15b6e2

View File

@ -192,6 +192,11 @@ class CLIDbManager:
name_file.write(title)
name_file.close()
# open and close the db to write version number in metadata
newdb = gen.db.GrampsDBDir()
newdb.load(new_path, None)
newdb.close()
self.current_names.append((title, new_path, path_name, _("Never"), 0,
False, ""))
return new_path, title