* src/GrampsBSDDB.py: fixed unicode/str problem
svn: r5171
This commit is contained in:
parent
d3fe9044df
commit
973f550d94
@ -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>
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user