diff --git a/ChangeLog b/ChangeLog index c6437e3ea..2fa12f65b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-04-23 Martin Hawlisch + * src/GrampsDbBase.py (_find_from_handle,find_object_from_handle, + find_place_from_handle): Fix typo + 2005-04-19 Martin Hawlisch * src/PedView.py: Replaced gnome canvas by an implementation that uses gtk+ only. Still incomplete. diff --git a/src/GrampsDbBase.py b/src/GrampsDbBase.py index 9723c448b..756fe8f38 100644 --- a/src/GrampsDbBase.py +++ b/src/GrampsDbBase.py @@ -464,7 +464,7 @@ class GrampsDbBase(GrampsDBCallback.GrampsDBCallback): def _find_from_handle(self,handle,transaction,class_type,dmap,add_func): obj = class_type() - val = str(val) + val = str(handle) if dmap.get(val): obj.unserialize(dmap.get(val)) else: @@ -496,7 +496,7 @@ class GrampsDbBase(GrampsDBCallback.GrampsDBCallback): return self._find_from_handle(val,transaction,Event, self.event_map,self.add_event) - def find_object_from_handle(self,handle,transaction): + def find_object_from_handle(self,val,transaction): """ Finds an MediaObject in the database from the passed GRAMPS ID. If no such MediaObject exists, a new Object is added to the database.""" @@ -504,7 +504,7 @@ class GrampsDbBase(GrampsDBCallback.GrampsDBCallback): return self._find_from_handle(val,transaction,MediaObject, self.media_map,self.add_object) - def find_place_from_handle(self,handle,transaction): + def find_place_from_handle(self,val,transaction): """ Finds a Place in the database from the passed GRAMPS ID. If no such Place exists, a new Place is added to the database.