Fixed Pedigree View for new preferred family concept

svn: r856
This commit is contained in:
Don Allingham 2002-03-24 16:49:58 +00:00
parent 9b437bb5ff
commit d4b0090710
2 changed files with 6 additions and 11 deletions

View File

@ -382,15 +382,10 @@ class PedigreeView:
if depth > 5 or person == None:
return
family = person.getMainFamily()
frel = 0
mrel = 0
if family == None:
l = person.getAltFamilyList()
if len(l) > 0:
(family,m,f) = l[0]
mrel = (m != "Birth")
frel = (f != "Birth")
(family,m,f) = person.getMainFamilyRel()
if family:
mrel = (m != "Birth")
frel = (f != "Birth")
list[index] = (person,val)
if family != None:

View File

@ -1120,9 +1120,9 @@ class Person:
"""returns the main Family of the Person, the Family in which the
Person is a natural born child"""
if len(self.AltFamilyList) == 0:
return None
return (None,None,None)
else:
return self.AltFamilyList
return self.AltFamilyList[0]
def setNote(self,text):
"""sets the note attached to the Person to the passed text"""