2004-08-11 Tim Waugh <twaugh@redhat.com>

* src/GrampsDbBase.py: Fixed some missed str()s.


svn: r3373
This commit is contained in:
Tim Waugh 2004-08-11 16:12:08 +00:00
parent 7a8aade876
commit f1dad71117
2 changed files with 9 additions and 6 deletions

View File

@ -1,4 +1,7 @@
2004-08-1 Alex Roitman <shura@alex.neuro.umn.edu>
2004-08-11 Tim Waugh <twaugh@redhat.com>
* src/GrampsDbBase.py: Fixed some missed str()s.
2004-08-11 Alex Roitman <shura@alex.neuro.umn.edu>
* src/Makefile.am: Ship new files: GrampsDbBase.py, GrampsXMLDB.py,
and GrampsGEDDB.py.

View File

@ -206,7 +206,7 @@ class GrampsDbBase:
"""finds a Source in the database from the passed gramps' ID.
If no such Source exists, None is returned."""
data = self.source_map.get(val)
data = self.source_map.get(str(val))
if data:
source = Source()
source.unserialize(data)
@ -216,7 +216,7 @@ class GrampsDbBase:
def get_object_from_handle(self,handle):
"""finds an Object in the database from the passed gramps' ID.
If no such Object exists, None is returned."""
data = self.media_map.get(handle)
data = self.media_map.get(str(handle))
if data:
mobject = MediaObject()
mobject.unserialize(data)
@ -226,7 +226,7 @@ class GrampsDbBase:
def get_place_from_handle(self,handle):
"""finds a Place in the database from the passed gramps' ID.
If no such Place exists, None is returned."""
data = self.place_map.get(handle)
data = self.place_map.get(str(handle))
if data:
place = Place()
place.unserialize(data)
@ -237,7 +237,7 @@ class GrampsDbBase:
"""finds a Place in the database from the passed gramps' ID.
If no such Place exists, None is returned."""
data = self.event_map.get(handle)
data = self.event_map.get(str(handle))
if data:
event = Event()
event.unserialize(data)
@ -260,7 +260,7 @@ class GrampsDbBase:
If no such Person exists, a new Person is added to the database."""
person = Person()
data = self.person_map.get(val)
data = self.person_map.get(str(val))
if data:
person.unserialize(data)
else: