* src/GrampsDbBase.py (_find_from_handle,find_object_from_handle,

find_place_from_handle): Fix typo


svn: r4405
This commit is contained in:
Martin Hawlisch 2005-04-23 06:56:05 +00:00
parent 80289df516
commit 1153713d67
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2005-04-23 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* src/GrampsDbBase.py (_find_from_handle,find_object_from_handle,
find_place_from_handle): Fix typo
2005-04-19 Martin Hawlisch <Martin.Hawlisch@gmx.de> 2005-04-19 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* src/PedView.py: Replaced gnome canvas by an implementation * src/PedView.py: Replaced gnome canvas by an implementation
that uses gtk+ only. Still incomplete. that uses gtk+ only. Still incomplete.

View File

@ -464,7 +464,7 @@ class GrampsDbBase(GrampsDBCallback.GrampsDBCallback):
def _find_from_handle(self,handle,transaction,class_type,dmap,add_func): def _find_from_handle(self,handle,transaction,class_type,dmap,add_func):
obj = class_type() obj = class_type()
val = str(val) val = str(handle)
if dmap.get(val): if dmap.get(val):
obj.unserialize(dmap.get(val)) obj.unserialize(dmap.get(val))
else: else:
@ -496,7 +496,7 @@ class GrampsDbBase(GrampsDBCallback.GrampsDBCallback):
return self._find_from_handle(val,transaction,Event, return self._find_from_handle(val,transaction,Event,
self.event_map,self.add_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. Finds an MediaObject in the database from the passed GRAMPS ID.
If no such MediaObject exists, a new Object is added to the database.""" 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, return self._find_from_handle(val,transaction,MediaObject,
self.media_map,self.add_object) 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. Finds a Place in the database from the passed GRAMPS ID.
If no such Place exists, a new Place is added to the database. If no such Place exists, a new Place is added to the database.