* src/GrampsBSDDB.py: fixed unicode/str problem

svn: r5171
This commit is contained in:
Don Allingham 2005-09-03 03:47:37 +00:00
parent d3fe9044df
commit 973f550d94
2 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,5 @@
2005-09-01 Don Allingham <don@gramps-project.org>
2005-09-02 Don Allingham <don@gramps-project.org>
* src/GrampsBSDDB.py: fixed unicode/str problem
* doc/gramps-manual/C/preface.xml: wording fixes.
2005-09-01 Don Allingham <don@gramps-project.org>

View File

@ -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))