From 7f55894f26d81773c2f5e76a402f4dc4b997048c Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sun, 20 Dec 2009 19:59:21 +0000 Subject: [PATCH] Added is_primary method to EventRoleType svn: r13859 --- src/gen/lib/eventroletype.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gen/lib/eventroletype.py b/src/gen/lib/eventroletype.py index d0eda4031..5e2d25527 100644 --- a/src/gen/lib/eventroletype.py +++ b/src/gen/lib/eventroletype.py @@ -68,3 +68,9 @@ class EventRoleType(GrampsType): def __init__(self, value=None): GrampsType.__init__(self, value) + + def is_primary(self): + """ + Returns True if EventRoleType is primary, False otherwise. + """ + return self.__value == self.PRIMARY