* src/EditSource.py: try_to_find_person_from_id fix

* src/PedView.py: try_to_find_person_from_id fix
* src/Utils.py: try_to_find_person_from_id fix


svn: r3197
This commit is contained in:
Don Allingham
2004-05-31 03:50:06 +00:00
parent affda15461
commit 9cb2a3afc3
8 changed files with 28 additions and 16 deletions

View File

@@ -366,13 +366,13 @@ class PedigreeView:
childlist = find_children(self.active_person)
if len(childlist) == 1:
child = self.parent.db.try_to_find_person_from_id(childlist[0],None)
child = self.parent.db.try_to_find_person_from_id(childlist[0])
if child:
self.load_canvas(child)
elif len(childlist) > 1:
myMenu = gtk.Menu()
for child_id in childlist:
child = self.parent.db.try_to_find_person_from_id(child_id,None)
child = self.parent.db.try_to_find_person_from_id(child_id)
cname = GrampsCfg.nameof(child)
menuitem = gtk.MenuItem(None)
if find_children(child):
@@ -485,11 +485,11 @@ class PedigreeView:
if family != None:
father_id = family.get_father_id()
if father_id != None:
father = self.parent.db.try_to_find_person_from_id(father_id,None)
father = self.parent.db.try_to_find_person_from_id(father_id)
self.find_tree(father,(2*index)+1,depth+1,list,frel)
mother_id = family.get_mother_id()
if mother_id != None:
mother = self.parent.db.try_to_find_person_from_id(mother_id,None)
mother = self.parent.db.try_to_find_person_from_id(mother_id)
self.find_tree(mother,(2*index)+2,depth+1,list,mrel)
def on_canvas1_event(self,obj,event):