Added is_primary method to EventRoleType

svn: r13859
This commit is contained in:
Doug Blank 2009-12-20 19:59:21 +00:00
parent b7169ff0b0
commit 7f55894f26

View File

@ -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