* 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

@ -27,6 +27,8 @@
* src/SelectChild.py: Fix constants.
* src/WriteXML.py: Fix constants.
* src/GrampsBSDDB.py (upgrade_7): Enforce str for the default handle.
2005-05-27 Richard Taylor <rjt-gramps@thegrindstone.me.uk>
* src/EditRepository.py: polish Repository Ref UI
* src/RelLib.py: merge minor changes from HEAD

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