* src/ChooseParents.py: use integers instead of strings for
relationship types * src/PedView.py: use integers instead of strings for relationship types * src/ReadGedcom.py: use integers instead of strings for relationship types * src/ReadXML.py: use integers instead of strings for relationship types * src/RelLib.py: use integers instead of strings for relationship types * src/SelectChild.py: use integers instead of strings for relationship types * src/WriteXML.py: use integers instead of strings for relationship types * src/const.py.in: use integers instead of strings for relationship types * src/gramps_main.py: call database update function * src/GrampsBSDDB.py: add database upgrade function * src/GrampsDbBase.py: add database upgrade function svn: r4113
This commit is contained in:
@ -796,13 +796,19 @@ class GrampsParser:
|
||||
family = self.find_family_by_gramps_id(self.map_fid(attrs["ref"]))
|
||||
|
||||
if attrs.has_key("mrel"):
|
||||
mrel = attrs["mrel"]
|
||||
try:
|
||||
mrel = const.child_rel_notrans[attrs["mrel"]]
|
||||
except:
|
||||
mrel = RelLib.Person.CHILD_REL_NONE
|
||||
else:
|
||||
mrel = "Birth"
|
||||
mrel = RelLib.Person.CHILD_REL_BIRTH
|
||||
if attrs.has_key("frel"):
|
||||
frel = attrs["frel"]
|
||||
try:
|
||||
frel = const.child_rel_notrans[attrs["frel"]]
|
||||
except:
|
||||
frel = RelLib.Person.CHILD_REL_NONE
|
||||
else:
|
||||
frel = "Birth"
|
||||
frel = RelLib.Person.CHILD_REL_BIRTH
|
||||
self.person.add_parent_family_handle(family.get_handle(),mrel,frel)
|
||||
|
||||
def start_parentin(self,attrs):
|
||||
|
Reference in New Issue
Block a user