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

number into it's metadata.


svn: r10482
This commit is contained in:
Zsolt Foldvari 2008-04-05 21:07:21 +00:00
parent 3d9d5123a4
commit e27422e243

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