Added is_primary method to EventRoleType
svn: r13859
This commit is contained in:
parent
b7169ff0b0
commit
7f55894f26
@ -68,3 +68,9 @@ class EventRoleType(GrampsType):
|
|||||||
|
|
||||||
def __init__(self, value=None):
|
def __init__(self, value=None):
|
||||||
GrampsType.__init__(self, value)
|
GrampsType.__init__(self, value)
|
||||||
|
|
||||||
|
def is_primary(self):
|
||||||
|
"""
|
||||||
|
Returns True if EventRoleType is primary, False otherwise.
|
||||||
|
"""
|
||||||
|
return self.__value == self.PRIMARY
|
||||||
|
Loading…
Reference in New Issue
Block a user