Check for missing father or mother in family rules
This commit is contained in:
parent
9bd507d626
commit
0dd79314b1
@ -33,6 +33,7 @@ in the class body, outside any method:
|
||||
|
||||
def father_base(self, db, family):
|
||||
father_handle = family.get_father_handle()
|
||||
if father_handle:
|
||||
father = db.get_person_from_handle(father_handle)
|
||||
if father:
|
||||
return self.base_class.apply(self, db, father)
|
||||
@ -41,6 +42,7 @@ def father_base(self,db,family):
|
||||
|
||||
def mother_base(self, db, family):
|
||||
mother_handle = family.get_mother_handle()
|
||||
if mother_handle:
|
||||
mother = db.get_person_from_handle(mother_handle)
|
||||
if mother:
|
||||
return self.base_class.apply(self, db, mother)
|
||||
|
Loading…
Reference in New Issue
Block a user