Skip to content

Commit 5adaef9

Browse files
committed
Add new role types present in the Gedcom 7.0 specification
1 parent 9550a85 commit 5adaef9

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

gramps/gen/lib/eventroletype.py

+16
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,14 @@ class EventRoleType(GrampsType):
5555
FAMILY = 8
5656
INFORMANT = 9
5757
GODPARENT = 10
58+
FATHER = 11
59+
MOTHER = 12
60+
PARENT = 13
61+
CHILD = 14
62+
MULTIPLE = 15
63+
FRIEND = 16
64+
NEIGHBOR = 17
65+
OFFICIATOR = 18
5866

5967
_CUSTOM = CUSTOM
6068
_DEFAULT = PRIMARY
@@ -72,6 +80,14 @@ class EventRoleType(GrampsType):
7280
(FAMILY, _("Family", "Role"), "Family"),
7381
(INFORMANT, _("Informant"), "Informant"),
7482
(GODPARENT, _("Godparent"), "Godparent"),
83+
(FATHER, _("Father"), "Father"),
84+
(MOTHER, _("Mother"), "Mother"),
85+
(PARENT, _("Parent"), "Parent"),
86+
(CHILD, _("Child"), "Child"),
87+
(MULTIPLE, _("Multiple birth"), "Multiple birth"),
88+
(FRIEND, _("Friend"), "Friend"),
89+
(NEIGHBOR, _("Neighbor"), "Neighbor"),
90+
(OFFICIATOR, _("Officiator"), "Officiator"),
7591
]
7692

7793
def __init__(self, value=None):

gramps/plugins/test/tools_test.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -151,16 +151,15 @@ def test_tcg_and_check_and_repair(self):
151151
expect = [
152152
"7 broken child/family links were fixed",
153153
"4 broken spouse/family links were fixed",
154-
"1 corrupted family relationship fixed",
155154
"1 place alternate name fixed",
156155
"10 media objects were referenced, but not found",
157156
"References to 10 missing media objects were kept",
158157
"3 events were referenced, but not found",
159158
"1 invalid birth event name was fixed",
160159
"1 invalid death event name was fixed",
161160
"2 places were referenced, but not found",
162-
"12 citations were referenced, but not found",
163-
"15 sources were referenced, but not found",
161+
"16 citations were referenced, but not found",
162+
"19 sources were referenced, but not found",
164163
"9 Duplicated Gramps IDs fixed",
165164
"7 empty objects removed",
166165
"1 person objects",

0 commit comments

Comments
 (0)