2004-08-11 Tim Waugh <twaugh@redhat.com>
* src/GrampsDbBase.py: Fixed some missed str()s. svn: r3373
This commit is contained in:
parent
7a8aade876
commit
f1dad71117
@ -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,
|
* src/Makefile.am: Ship new files: GrampsDbBase.py, GrampsXMLDB.py,
|
||||||
and GrampsGEDDB.py.
|
and GrampsGEDDB.py.
|
||||||
|
|
||||||
|
@ -206,7 +206,7 @@ class GrampsDbBase:
|
|||||||
"""finds a Source in the database from the passed gramps' ID.
|
"""finds a Source in the database from the passed gramps' ID.
|
||||||
If no such Source exists, None is returned."""
|
If no such Source exists, None is returned."""
|
||||||
|
|
||||||
data = self.source_map.get(val)
|
data = self.source_map.get(str(val))
|
||||||
if data:
|
if data:
|
||||||
source = Source()
|
source = Source()
|
||||||
source.unserialize(data)
|
source.unserialize(data)
|
||||||
@ -216,7 +216,7 @@ class GrampsDbBase:
|
|||||||
def get_object_from_handle(self,handle):
|
def get_object_from_handle(self,handle):
|
||||||
"""finds an Object in the database from the passed gramps' ID.
|
"""finds an Object in the database from the passed gramps' ID.
|
||||||
If no such Object exists, None is returned."""
|
If no such Object exists, None is returned."""
|
||||||
data = self.media_map.get(handle)
|
data = self.media_map.get(str(handle))
|
||||||
if data:
|
if data:
|
||||||
mobject = MediaObject()
|
mobject = MediaObject()
|
||||||
mobject.unserialize(data)
|
mobject.unserialize(data)
|
||||||
@ -226,7 +226,7 @@ class GrampsDbBase:
|
|||||||
def get_place_from_handle(self,handle):
|
def get_place_from_handle(self,handle):
|
||||||
"""finds a Place in the database from the passed gramps' ID.
|
"""finds a Place in the database from the passed gramps' ID.
|
||||||
If no such Place exists, None is returned."""
|
If no such Place exists, None is returned."""
|
||||||
data = self.place_map.get(handle)
|
data = self.place_map.get(str(handle))
|
||||||
if data:
|
if data:
|
||||||
place = Place()
|
place = Place()
|
||||||
place.unserialize(data)
|
place.unserialize(data)
|
||||||
@ -237,7 +237,7 @@ class GrampsDbBase:
|
|||||||
"""finds a Place in the database from the passed gramps' ID.
|
"""finds a Place in the database from the passed gramps' ID.
|
||||||
If no such Place exists, None is returned."""
|
If no such Place exists, None is returned."""
|
||||||
|
|
||||||
data = self.event_map.get(handle)
|
data = self.event_map.get(str(handle))
|
||||||
if data:
|
if data:
|
||||||
event = Event()
|
event = Event()
|
||||||
event.unserialize(data)
|
event.unserialize(data)
|
||||||
@ -260,7 +260,7 @@ class GrampsDbBase:
|
|||||||
If no such Person exists, a new Person is added to the database."""
|
If no such Person exists, a new Person is added to the database."""
|
||||||
|
|
||||||
person = Person()
|
person = Person()
|
||||||
data = self.person_map.get(val)
|
data = self.person_map.get(str(val))
|
||||||
if data:
|
if data:
|
||||||
person.unserialize(data)
|
person.unserialize(data)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user