From 2393a3d731d373570aaf5ccea6afc1080c469cc1 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Wed, 11 Aug 2004 16:12:08 +0000 Subject: [PATCH] 2004-08-11 Tim Waugh * src/GrampsDbBase.py: Fixed some missed str()s. svn: r3373 --- gramps2/ChangeLog | 5 ++++- gramps2/src/GrampsDbBase.py | 10 +++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index cc8c73a68..f70a616e0 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,4 +1,7 @@ -2004-08-1 Alex Roitman +2004-08-11 Tim Waugh + * src/GrampsDbBase.py: Fixed some missed str()s. + +2004-08-11 Alex Roitman * src/Makefile.am: Ship new files: GrampsDbBase.py, GrampsXMLDB.py, and GrampsGEDDB.py. diff --git a/gramps2/src/GrampsDbBase.py b/gramps2/src/GrampsDbBase.py index 2999b2936..5b75e409f 100644 --- a/gramps2/src/GrampsDbBase.py +++ b/gramps2/src/GrampsDbBase.py @@ -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: