* src/GrampsBSDDB.py (upgrade_7): Enforce str for the default handle.

svn: r4726
This commit is contained in:
Alex Roitman
2005-05-28 06:35:15 +00:00
parent f98d4f493e
commit 8969589bae
2 changed files with 5 additions and 0 deletions

View File

@@ -825,6 +825,9 @@ class GrampsBSDDB(GrampsDbBase):
def upgrade_7(self):
print "Upgrading to DB version 7"
# First, make sure the stored default person handle is str, not unicode
handle = self.metadata['default']
self.metadata['default'] = str(handle)
trans = Transaction("",self)
trans.set_batch(True)
# Change every source to have reporef_list