From 8969589bae747e00c47f8e06644fa209e2c83fb7 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Sat, 28 May 2005 06:35:15 +0000 Subject: [PATCH] * src/GrampsBSDDB.py (upgrade_7): Enforce str for the default handle. svn: r4726 --- ChangeLog | 2 ++ src/GrampsBSDDB.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8bee4cd58..80c725228 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 * src/EditRepository.py: polish Repository Ref UI * src/RelLib.py: merge minor changes from HEAD diff --git a/src/GrampsBSDDB.py b/src/GrampsBSDDB.py index eebc5b5fa..0b9f4c0c1 100644 --- a/src/GrampsBSDDB.py +++ b/src/GrampsBSDDB.py @@ -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