From 4cf88183992794874b72e434f8cbffa1cdfeecdc Mon Sep 17 00:00:00 2001 From: sebdu66 <52951441+sebdu66@users.noreply.github.com> Date: Tue, 16 Jul 2019 13:45:59 +0200 Subject: [PATCH] Add initiatory ordinance This update add the ordinance initiatory and add the WAC tag to the gedcom file --- getmyancestors.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/getmyancestors.py b/getmyancestors.py index 8049b73..c8a0ee9 100755 --- a/getmyancestors.py +++ b/getmyancestors.py @@ -529,7 +529,7 @@ class Indi: self.parents = set() self.spouses = set() self.children = set() - self.baptism = self.confirmation = self.endowment = self.sealing_child = None + self.baptism = self.confirmation = self.initiatory = self.endowment = self.sealing_child = None self.nicknames = set() self.facts = set() self.birthnames = set() @@ -633,6 +633,8 @@ class Indi: self.baptism = Ordinance(o) elif o["type"] == "http://lds.org/Confirmation": self.confirmation = Ordinance(o) + elif o["type"] == "http://lds.org/Initiatory": + self.initiatory = Ordinance(o) elif o["type"] == "http://lds.org/Endowment": self.endowment = Ordinance(o) elif o["type"] == "http://lds.org/SealingChildToParents": @@ -684,6 +686,9 @@ class Indi: if self.confirmation: file.write("1 CONL\n") self.confirmation.print(file) + if self.initiatory: + file.write("1 WAC\n") + self.initiatory.print(file) if self.endowment: file.write("1 ENDL\n") self.endowment.print(file) -- 2.52.0