From c6fe293ef1ff1c00b6d1df703f5fe52e2c33c2ee Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 2 Aug 2001 21:10:08 +0000 Subject: [PATCH] Fixed problem with parents svn: r280 --- gramps/src/gramps_main.py | 5 ++++- gramps/src/plugins/ReadGedcom.py | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gramps/src/gramps_main.py b/gramps/src/gramps_main.py index a154ab6ff..c1a95089a 100755 --- a/gramps/src/gramps_main.py +++ b/gramps/src/gramps_main.py @@ -1054,6 +1054,10 @@ def on_save_parents_clicked(obj): frel = family_window.get_widget("frel").get_text() type = family_window.get_widget("prel").get_text() + mrel = const.childRelations[mrel] + frel = const.childRelations[frel] + type = save_frel(type) + if select_father or select_mother: if select_mother.getGender() == Person.male and \ select_father.getGender() == Person.female: @@ -1073,7 +1077,6 @@ def on_save_parents_clicked(obj): else: family = None - print type,family family.setRelationship(type) change_family_type(family,mrel,frel) diff --git a/gramps/src/plugins/ReadGedcom.py b/gramps/src/plugins/ReadGedcom.py index 496174ef0..f86b8f01e 100644 --- a/gramps/src/plugins/ReadGedcom.py +++ b/gramps/src/plugins/ReadGedcom.py @@ -518,6 +518,8 @@ class GedcomParser: event.setName(ged2fam[matches[1]]) except: event.setName(matches[1]) + if event.getName() == "Marriage": + self.setRelationship("Married") self.family.addEvent(event) self.parse_family_event(event,2)