extend nameorigin with 3 extra types: coming from father, from mother, and from occupation.
Adding surname to the generated docs svn: r16197
This commit is contained in:
parent
864b3b6ef7
commit
482f2d112e
@ -95,6 +95,14 @@ AttributeBase
|
|||||||
:undoc-members:
|
:undoc-members:
|
||||||
:show-inheritance:
|
:show-inheritance:
|
||||||
|
|
||||||
|
SurnameBase
|
||||||
|
====================================
|
||||||
|
.. automodule:: gen.lib.surnamebase
|
||||||
|
.. autoclass:: SurnameBase
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
||||||
|
|
||||||
DateBase
|
DateBase
|
||||||
====================================
|
====================================
|
||||||
.. automodule:: gen.lib.datebase
|
.. automodule:: gen.lib.datebase
|
||||||
@ -260,6 +268,14 @@ Name
|
|||||||
:undoc-members:
|
:undoc-members:
|
||||||
:show-inheritance:
|
:show-inheritance:
|
||||||
|
|
||||||
|
Surname
|
||||||
|
====================================
|
||||||
|
.. automodule:: gen.lib.surname
|
||||||
|
.. autoclass:: Surname
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
||||||
|
|
||||||
Url
|
Url
|
||||||
====================================
|
====================================
|
||||||
.. automodule:: gen.lib.url
|
.. automodule:: gen.lib.url
|
||||||
@ -408,6 +424,13 @@ NameType
|
|||||||
:undoc-members:
|
:undoc-members:
|
||||||
:show-inheritance:
|
:show-inheritance:
|
||||||
|
|
||||||
|
NameOriginType
|
||||||
|
===========
|
||||||
|
.. automodule:: gen.lib.nameorigintype
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
||||||
|
|
||||||
AttributeType
|
AttributeType
|
||||||
=============
|
=============
|
||||||
.. automodule:: gen.lib.attrtype
|
.. automodule:: gen.lib.attrtype
|
||||||
|
@ -40,18 +40,21 @@ from gen.lib.grampstype import GrampsType
|
|||||||
|
|
||||||
class NameOriginType(GrampsType):
|
class NameOriginType(GrampsType):
|
||||||
"""
|
"""
|
||||||
Name Origina Types
|
Name Origin Types
|
||||||
|
|
||||||
.. attribute UNKNOWN: Unknown origin
|
.. attribute UNKNOWN: Unknown origin
|
||||||
.. attribute CUSTOM: Custom user defined origin
|
.. attribute CUSTOM: Custom user defined origin
|
||||||
.. attribute NONE: no given origin
|
.. attribute NONE: no given origin
|
||||||
.. attribute INHERITED: name was inherited from parents
|
.. attribute INHERITED: name was inherited from parents
|
||||||
|
.. attribute PATRILINEAL: name was inherited from father's family name
|
||||||
|
.. attribute MATRILINEAL: name was inherited from mother's family name
|
||||||
.. attribute GIVEN: name was bestowed on the individual
|
.. attribute GIVEN: name was bestowed on the individual
|
||||||
.. attribute TAKEN: name was chosen by the individual
|
.. attribute TAKEN: name was chosen by the individual
|
||||||
.. attribute PATRONYMIC: name is derived from father's given name
|
.. attribute PATRONYMIC: name is derived from father's given name
|
||||||
.. attribute MATRONYMIC: name is derived from mother's given name
|
.. attribute MATRONYMIC: name is derived from mother's given name
|
||||||
.. attribute FEUDAL: name refers to the holding of land in a fief
|
.. attribute FEUDAL: name refers to the holding of land in a fief
|
||||||
.. attribute PSEUDONYM: name is fictitious
|
.. attribute PSEUDONYM: name is fictitious
|
||||||
|
.. attribute OCCUPATION: name follows from the occupation of the person
|
||||||
"""
|
"""
|
||||||
|
|
||||||
UNKNOWN = -1
|
UNKNOWN = -1
|
||||||
@ -64,6 +67,9 @@ class NameOriginType(GrampsType):
|
|||||||
MATRONYMIC = 6
|
MATRONYMIC = 6
|
||||||
FEUDAL = 7
|
FEUDAL = 7
|
||||||
PSEUDONYM = 8
|
PSEUDONYM = 8
|
||||||
|
PATRILINEAL= 9
|
||||||
|
MATRILINEAL= 10
|
||||||
|
OCCUPATION = 11
|
||||||
|
|
||||||
_CUSTOM = CUSTOM
|
_CUSTOM = CUSTOM
|
||||||
_DEFAULT = NONE
|
_DEFAULT = NONE
|
||||||
@ -79,7 +85,9 @@ class NameOriginType(GrampsType):
|
|||||||
(MATRONYMIC , _("Matronymic"), "Matronymic"),
|
(MATRONYMIC , _("Matronymic"), "Matronymic"),
|
||||||
(FEUDAL , _("Surname|Feudal"), "Feudal"),
|
(FEUDAL , _("Surname|Feudal"), "Feudal"),
|
||||||
(PSEUDONYM , _("Pseudonym"), "Pseudonym"),
|
(PSEUDONYM , _("Pseudonym"), "Pseudonym"),
|
||||||
|
(PATRILINEAL, _("Patrilineal"), "Patrilineal"),
|
||||||
|
(MATRILINEAL, _("Matrilineal"), "Matrilineal"),
|
||||||
|
(OCCUPATION , _("Occupation"), "Occupation")
|
||||||
]
|
]
|
||||||
|
|
||||||
def __init__(self, value=None):
|
def __init__(self, value=None):
|
||||||
|
Loading…
Reference in New Issue
Block a user