From 973f550d940a394a6a5b658f98b36221ab821ab7 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sat, 3 Sep 2005 03:47:37 +0000 Subject: [PATCH] * src/GrampsBSDDB.py: fixed unicode/str problem svn: r5171 --- gramps2/ChangeLog | 3 ++- gramps2/src/GrampsBSDDB.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 4c4a5094e..339291434 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,4 +1,5 @@ -2005-09-01 Don Allingham +2005-09-02 Don Allingham + * src/GrampsBSDDB.py: fixed unicode/str problem * doc/gramps-manual/C/preface.xml: wording fixes. 2005-09-01 Don Allingham diff --git a/gramps2/src/GrampsBSDDB.py b/gramps2/src/GrampsBSDDB.py index f57ab3db4..24071d571 100644 --- a/gramps2/src/GrampsBSDDB.py +++ b/gramps2/src/GrampsBSDDB.py @@ -397,7 +397,7 @@ class GrampsBSDDB(GrampsDbBase): def remove_place(self,handle,transaction): if not self.readonly and handle and str(handle) in self.place_map: if transaction != None: - old_data = self.place_map.get(handle) + old_data = self.place_map.get(str(handle)) transaction.add(PLACE_KEY,handle,old_data) self.emit('place-delete',([handle],)) self.place_map.delete(str(handle)) @@ -405,7 +405,7 @@ class GrampsBSDDB(GrampsDbBase): def remove_object(self,handle,transaction): if not self.readonly and handle and str(handle) in self.media_map: if transaction != None: - old_data = self.media_map.get(handle) + old_data = self.media_map.get(str(handle)) transaction.add(MEDIA_KEY,handle,old_data) self.emit('media-delete',([handle],)) self.media_map.delete(str(handle))