Skip to content

Commit

Permalink
Add new role types present in the Gedcom 7.0 specification
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-Hall committed May 14, 2024
1 parent 9550a85 commit 5adaef9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
16 changes: 16 additions & 0 deletions gramps/gen/lib/eventroletype.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ class EventRoleType(GrampsType):
FAMILY = 8
INFORMANT = 9
GODPARENT = 10
FATHER = 11
MOTHER = 12
PARENT = 13
CHILD = 14
MULTIPLE = 15
FRIEND = 16
NEIGHBOR = 17
OFFICIATOR = 18

_CUSTOM = CUSTOM
_DEFAULT = PRIMARY
Expand All @@ -72,6 +80,14 @@ class EventRoleType(GrampsType):
(FAMILY, _("Family", "Role"), "Family"),
(INFORMANT, _("Informant"), "Informant"),
(GODPARENT, _("Godparent"), "Godparent"),
(FATHER, _("Father"), "Father"),
(MOTHER, _("Mother"), "Mother"),
(PARENT, _("Parent"), "Parent"),
(CHILD, _("Child"), "Child"),
(MULTIPLE, _("Multiple birth"), "Multiple birth"),
(FRIEND, _("Friend"), "Friend"),
(NEIGHBOR, _("Neighbor"), "Neighbor"),
(OFFICIATOR, _("Officiator"), "Officiator"),
]

def __init__(self, value=None):
Expand Down
5 changes: 2 additions & 3 deletions gramps/plugins/test/tools_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,16 +151,15 @@ def test_tcg_and_check_and_repair(self):
expect = [
"7 broken child/family links were fixed",
"4 broken spouse/family links were fixed",
"1 corrupted family relationship fixed",
"1 place alternate name fixed",
"10 media objects were referenced, but not found",
"References to 10 missing media objects were kept",
"3 events were referenced, but not found",
"1 invalid birth event name was fixed",
"1 invalid death event name was fixed",
"2 places were referenced, but not found",
"12 citations were referenced, but not found",
"15 sources were referenced, but not found",
"16 citations were referenced, but not found",
"19 sources were referenced, but not found",
"9 Duplicated Gramps IDs fixed",
"7 empty objects removed",
"1 person objects",
Expand Down

0 comments on commit 5adaef9

Please sign in to comment.