Fixed family relationships on GEDCOM import
svn: r252
This commit is contained in:
parent
92b3a6375d
commit
c7d4701f5b
@ -482,9 +482,10 @@ class GedcomParser:
|
|||||||
mrel,frel = self.parse_ftw_relations(2)
|
mrel,frel = self.parse_ftw_relations(2)
|
||||||
child = self.db.findPerson(matches[2],self.pmap)
|
child = self.db.findPerson(matches[2],self.pmap)
|
||||||
self.family.addChild(child)
|
self.family.addChild(child)
|
||||||
if type != "":
|
if (mrel == "Birth" or mrel == "") and \
|
||||||
if child.getMainFamily() == self.family:
|
(frel == "Birth" or frel == "") :
|
||||||
child.setMainFamily(None)
|
child.setMainFamily(self.family)
|
||||||
|
else:
|
||||||
child.addAltFamily(self.family,mrel,frel)
|
child.addAltFamily(self.family,mrel,frel)
|
||||||
elif matches[1] == "NCHI" or matches[1] == "RIN" or matches[1] == "SUBM":
|
elif matches[1] == "NCHI" or matches[1] == "RIN" or matches[1] == "SUBM":
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user