betty.model.event_type module¶
Provide Betty’s ancestry event types.
- class betty.model.event_type.Adoption[source]¶
Bases:
DuringLifeEventTypeSomeone was adopted.
- classmethod label() betty.locale.Localizable[source]¶
Get the human-readable label.
- Return type:
- class betty.model.event_type.Baptism[source]¶
Bases:
DuringLifeEventType,StartOfLifeEventTypeSomeone was baptized.
- classmethod label() betty.locale.Localizable[source]¶
Get the human-readable label.
- Return type:
- class betty.model.event_type.Birth[source]¶
Bases:
CreatableDerivableEventType,StartOfLifeEventTypeSomeone was born.
- classmethod comes_before() set[type[betty.model.event_type.EventType]][source]¶
Get the event types that this event type comes before.
The returned event types come after this event type.
- Return type:
- classmethod label() betty.locale.Localizable[source]¶
Get the human-readable label.
- Return type:
- class betty.model.event_type.Burial[source]¶
Bases:
FinalDispositionEventTypeSomeone was buried.
- classmethod label() betty.locale.Localizable[source]¶
Get the human-readable label.
- Return type:
- class betty.model.event_type.Conference[source]¶
Bases:
DuringLifeEventTypeA conference between people took place.
- classmethod label() betty.locale.Localizable[source]¶
Get the human-readable label.
- Return type:
- class betty.model.event_type.Confirmation[source]¶
Bases:
DuringLifeEventTypeSomeone’s confirmation took place.
- classmethod label() betty.locale.Localizable[source]¶
Get the human-readable label.
- Return type:
- class betty.model.event_type.Correspondence[source]¶
Bases:
EventTypePeople corresponded with each other.
- classmethod label() betty.locale.Localizable[source]¶
Get the human-readable label.
- Return type:
- class betty.model.event_type.CreatableDerivableEventType[source]¶
Bases:
DerivableEventTypeAny event type of which the deriver API may create new instances.
- classmethod may_create(person: betty.model.ancestry.Person, lifetime_threshold: int) bool[source]¶
Whether a new event of this type may be created for the given person.
- Parameters:
person (
betty.model.ancestry.Person)lifetime_threshold (
int)
- Return type:
- class betty.model.event_type.Cremation[source]¶
Bases:
FinalDispositionEventTypeSomeone was cremated.
- classmethod label() betty.locale.Localizable[source]¶
Get the human-readable label.
- Return type:
- class betty.model.event_type.Death[source]¶
Bases:
CreatableDerivableEventType,EndOfLifeEventTypeSomeone died.
- classmethod comes_after() set[type[betty.model.event_type.EventType]][source]¶
Get the event types that this event type comes after.
The returned event types come before this event type.
- Return type:
- classmethod label() betty.locale.Localizable[source]¶
Get the human-readable label.
- Return type:
- classmethod may_create(person: betty.model.ancestry.Person, lifetime_threshold: int) bool[source]¶
Whether a new event of this type may be created for the given person.
- Parameters:
person (
betty.model.ancestry.Person)lifetime_threshold (
int)
- Return type:
- class betty.model.event_type.DerivableEventType[source]¶
Bases:
EventTypeAny event that that may be updated by the deriver API.
- class betty.model.event_type.Divorce[source]¶
Bases:
DuringLifeEventTypePeople were divorced.
- classmethod comes_after() set[type[betty.model.event_type.EventType]][source]¶
Get the event types that this event type comes after.
The returned event types come before this event type.
- Return type:
- classmethod label() betty.locale.Localizable[source]¶
Get the human-readable label.
- Return type:
- class betty.model.event_type.DivorceAnnouncement[source]¶
Bases:
DuringLifeEventTypePeople’s divorce was announced.
- classmethod comes_after() set[type[betty.model.event_type.EventType]][source]¶
Get the event types that this event type comes after.
The returned event types come before this event type.
- Return type:
- classmethod comes_before() set[type[betty.model.event_type.EventType]][source]¶
Get the event types that this event type comes before.
The returned event types come after this event type.
- Return type:
- classmethod label() betty.locale.Localizable[source]¶
Get the human-readable label.
- Return type:
- class betty.model.event_type.DuringLifeEventType[source]¶
Bases:
EventTypeAny event that only ever takes place during someone’s life, e.g. after their birth and before their death.
- classmethod comes_after() set[type[betty.model.event_type.EventType]][source]¶
Get the event types that this event type comes after.
The returned event types come before this event type.
- Return type:
- classmethod comes_before() set[type[betty.model.event_type.EventType]][source]¶
Get the event types that this event type comes before.
The returned event types come after this event type.
- Return type:
- class betty.model.event_type.Emigration[source]¶
Bases:
DuringLifeEventTypeSomeone emigrated from a place.
- classmethod label() betty.locale.Localizable[source]¶
Get the human-readable label.
- Return type:
- class betty.model.event_type.EndOfLifeEventType[source]¶
Bases:
EventTypeAn event that indicates the end of someone’s life.
This includes someone’s actual death, but also other types of events that take place close to someone’s death and as such are indicators that that person died around the time of the end-of-life event.
- class betty.model.event_type.Engagement[source]¶
Bases:
DuringLifeEventTypePeople got engaged with the intent to marry.
- classmethod comes_before() set[type[betty.model.event_type.EventType]][source]¶
Get the event types that this event type comes before.
The returned event types come after this event type.
- Return type:
- classmethod label() betty.locale.Localizable[source]¶
Get the human-readable label.
- Return type:
- class betty.model.event_type.EventType[source]¶
Bases:
objectDefine an
betty.model.ancestry.Eventtype.- classmethod comes_after() set[type[betty.model.event_type.EventType]][source]¶
Get the event types that this event type comes after.
The returned event types come before this event type.
- Return type:
- classmethod comes_before() set[type[betty.model.event_type.EventType]][source]¶
Get the event types that this event type comes before.
The returned event types come after this event type.
- Return type:
- classmethod label() betty.locale.Localizable[source]¶
Get the human-readable label.
- Return type:
- class betty.model.event_type.EventTypeProvider[source]¶
Bases:
objectProvide additional event types.
- class betty.model.event_type.FinalDispositionEventType[source]¶
Bases:
PostDeathEventType,DerivableEventType,EndOfLifeEventTypeSomeone’s final disposition took place.
- class betty.model.event_type.Funeral[source]¶
Bases:
FinalDispositionEventTypeSomeone’s funeral took place.
- classmethod label() betty.locale.Localizable[source]¶
Get the human-readable label.
- Return type:
- class betty.model.event_type.Immigration[source]¶
Bases:
DuringLifeEventTypeSomeone immigrated to a place.
- classmethod label() betty.locale.Localizable[source]¶
Get the human-readable label.
- Return type:
- class betty.model.event_type.Marriage[source]¶
Bases:
DuringLifeEventTypePeople were married.
- classmethod label() betty.locale.Localizable[source]¶
Get the human-readable label.
- Return type:
- class betty.model.event_type.MarriageAnnouncement[source]¶
Bases:
DuringLifeEventTypePeople’s marriage was announced.
- classmethod comes_before() set[type[betty.model.event_type.EventType]][source]¶
Get the event types that this event type comes before.
The returned event types come after this event type.
- Return type:
- classmethod label() betty.locale.Localizable[source]¶
Get the human-readable label.
- Return type:
- class betty.model.event_type.Missing[source]¶
Bases:
DuringLifeEventTypeSomeone went missing.
- classmethod label() betty.locale.Localizable[source]¶
Get the human-readable label.
- Return type:
- class betty.model.event_type.Occupation[source]¶
Bases:
DuringLifeEventTypeSomeone’s occupation, e.g. their main recurring activity.
This may include employment, education, stay at home parent, etc.
- classmethod label() betty.locale.Localizable[source]¶
Get the human-readable label.
- Return type:
- class betty.model.event_type.PostDeathEventType[source]¶
Bases:
EventTypeAn event that only ever happens after someone’s death.
- classmethod comes_after() set[type[betty.model.event_type.EventType]][source]¶
Get the event types that this event type comes after.
The returned event types come before this event type.
- Return type:
- class betty.model.event_type.PreBirthEventType[source]¶
Bases:
EventTypeAny event that only ever takes place before someone’s birth.
- classmethod comes_before() set[type[betty.model.event_type.EventType]][source]¶
Get the event types that this event type comes before.
The returned event types come after this event type.
- Return type:
- class betty.model.event_type.Residence[source]¶
Bases:
DuringLifeEventTypeSomeone resided/lived in a place.
- classmethod label() betty.locale.Localizable[source]¶
Get the human-readable label.
- Return type:
- class betty.model.event_type.Retirement[source]¶
Bases:
DuringLifeEventTypeSomeone retired.
- classmethod label() betty.locale.Localizable[source]¶
Get the human-readable label.
- Return type:
- class betty.model.event_type.StartOfLifeEventType[source]¶
Bases:
EventTypeAn event that indicates the start of someone’s life.
This includes someone’s actual birth, but also other types of events that take place close to someone’s birth and as such are indicators that that person was born around the time of the start-of-life event.
- class betty.model.event_type.UnknownEventType[source]¶
Bases:
EventTypeDescribed an event for which no more specific type is known.
- classmethod label() betty.locale.Localizable[source]¶
Get the human-readable label.
- Return type:
- class betty.model.event_type.Will[source]¶
Bases:
PostDeathEventTypeSomeone’s will and testament came into effect.
- classmethod label() betty.locale.Localizable[source]¶
Get the human-readable label.
- Return type: