Added default family relationship of marriage

svn: r11517
This commit is contained in:
Doug Blank 2008-12-24 19:16:13 +00:00
parent 2bf693729f
commit 10b0648a45

View File

@ -733,6 +733,8 @@ class CSVParser:
if wife: if wife:
family.set_mother_handle(wife.get_handle()) family.set_mother_handle(wife.get_handle())
wife.add_family_handle(family.get_handle()) wife.add_family_handle(family.get_handle())
if husband and wife:
family.set_relationship(gen.lib.FamilyRelType.MARRIED)
self.db.commit_family(family,self.trans) self.db.commit_family(family,self.trans)
if husband: if husband:
self.db.commit_person(husband, self.trans) self.db.commit_person(husband, self.trans)