0.4.1 patches

svn: r334
This commit is contained in:
Don Allingham
2001-08-13 23:21:16 +00:00
parent 6d71932f7c
commit b3feb7df91
3 changed files with 8 additions and 4 deletions

View File

@ -136,13 +136,12 @@ class CheckIntegrity:
#-------------------------------------------------------------------------
def check_parent_relationships(self):
family_list = self.db.getFamilyMap().values()[:]
for family in family_list:
for family in self.db.getFamilyMap().values():
father = family.getFather()
mother = family.getMother()
type = family.getRelationship()
if not father or not mother:
if father == None or mother == None:
continue
if type != "Partners":
if father.getGender() == mother.getGender():