Fix mrel and frel on read if only one is present
svn: r312
This commit is contained in:
parent
82f8074e7d
commit
dccbafc3bb
@ -289,9 +289,15 @@ class GrampsParser(handler.ContentHandler):
|
|||||||
if attrs.has_key("type"):
|
if attrs.has_key("type"):
|
||||||
type = u2l(attrs["type"])
|
type = u2l(attrs["type"])
|
||||||
self.person.AltFamilyList.append((family,type,type))
|
self.person.AltFamilyList.append((family,type,type))
|
||||||
elif attrs.has_key("mrel"):
|
elif attrs.has_key("mrel") or attrs.has_key("frel"):
|
||||||
mrel = u2l(attrs["mrel"])
|
if attrs.has_key("mrel"):
|
||||||
frel = u2l(attrs["frel"])
|
mrel = u2l(attrs["mrel"])
|
||||||
|
else:
|
||||||
|
mrel = ""
|
||||||
|
if attrs.has_key("frel"):
|
||||||
|
frel = u2l(attrs["frel"])
|
||||||
|
else:
|
||||||
|
frel = ""
|
||||||
if mrel=="Birth" and frel=="Birth":
|
if mrel=="Birth" and frel=="Birth":
|
||||||
self.person.MainFamily = family
|
self.person.MainFamily = family
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user