location as predifined name origin type

svn: r16436
This commit is contained in:
Benny Malengier 2011-01-22 15:09:38 +00:00
parent a877138bcb
commit 1e119f93c3

View File

@ -55,6 +55,7 @@ class NameOriginType(GrampsType):
.. attribute FEUDAL: name refers to the holding of land in a fief
.. attribute PSEUDONYM: name is fictitious
.. attribute OCCUPATION: name follows from the occupation of the person
.. attribute LOCATION: name follows from the location of the person
"""
UNKNOWN = -1
@ -70,6 +71,7 @@ class NameOriginType(GrampsType):
PATRILINEAL= 9
MATRILINEAL= 10
OCCUPATION = 11
LOCATION = 12
_CUSTOM = CUSTOM
_DEFAULT = NONE
@ -87,7 +89,8 @@ class NameOriginType(GrampsType):
(PSEUDONYM , _("Pseudonym"), "Pseudonym"),
(PATRILINEAL, _("Patrilineal"), "Patrilineal"),
(MATRILINEAL, _("Matrilineal"), "Matrilineal"),
(OCCUPATION , _("Occupation"), "Occupation")
(OCCUPATION , _("Occupation"), "Occupation"),
(LOCATION , _("Location"), "Location"),
]
def __init__(self, value=None):