Skip to content

Commit 04ded96

Browse files
Adjust function name for consistency
1 parent c1919d4 commit 04ded96

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Form/UK1841.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def populate_model(self, db, citation, form_event, model):
9393
birth_date.set_quality(Date.QUAL_CALCULATED)
9494

9595
model.append(parent, (name_displayer.display(person), date_displayer.display(birth_date),
96-
lambda db, trans, citation_handle = citation.handle, person_handle = person.handle, birth_date_ = birth_date: ActionBase.AddEventToPerson(db, trans, person_handle, EventType.BIRTH, birth_date_, None, citation_handle, EventRoleType.PRIMARY)))
96+
lambda db, trans, citation_handle = citation.handle, person_handle = person.handle, birth_date_ = birth_date: ActionBase.add_event_to_person(db, trans, person_handle, EventType.BIRTH, birth_date_, None, citation_handle, EventRoleType.PRIMARY)))
9797

9898
class OccupationEvent(ActionBase):
9999
def __init__(self):
@@ -113,4 +113,4 @@ def populate_model(self, db, citation, form_event, model):
113113
occupation = attr.get_value()
114114
if (occupation) :
115115
model.append(parent, (name_displayer.display(person), occupation,
116-
lambda db, trans, citation_handle = citation.handle, person_handle = person.handle, occupation_ = occupation: ActionBase.AddEventToPerson(db, trans, person_handle, EventType.OCCUPATION, form_event.get_date_object(), occupation_, citation_handle, EventRoleType.PRIMARY)))
116+
lambda db, trans, citation_handle = citation.handle, person_handle = person.handle, occupation_ = occupation: ActionBase.add_event_to_person(db, trans, person_handle, EventType.OCCUPATION, form_event.get_date_object(), occupation_, citation_handle, EventRoleType.PRIMARY)))

Form/actionbase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ActionBase():
3333
def __init__(self):
3434
pass
3535

36-
def AddEventToPerson(db, trans, person_handle, event_type, event_date_object, event_description, citation_handle, event_role_type):
36+
def add_event_to_person(db, trans, person_handle, event_type, event_date_object, event_description, citation_handle, event_role_type):
3737
"""
3838
Add a new event to the specified person.
3939
"""

0 commit comments

Comments
 (0)