* src/GrampsDbBase.py (_find_from_handle,find_object_from_handle,
find_place_from_handle): Fix typo svn: r4405
This commit is contained in:
		@@ -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>
 | 
			
		||||
	* src/PedView.py: Replaced gnome canvas by an implementation
 | 
			
		||||
	that uses gtk+ only. Still incomplete.
 | 
			
		||||
 
 | 
			
		||||
@@ -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.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user