@@ -65,6 +65,7 @@ def get_actions(dbstate, citation, form_event):
65
65
return actions
66
66
67
67
class PrimaryNameCitation :
68
+ @staticmethod
68
69
def get_actions (dbstate , citation , form_event ):
69
70
db = dbstate .db
70
71
actions = []
@@ -73,6 +74,7 @@ def get_actions(dbstate, citation, form_event):
73
74
lambda dbstate , uistate , track , citation_handle = citation .handle , person_handle = person .handle : PrimaryNameCitation .command (dbstate , uistate , track , citation_handle , person_handle )))
74
75
return (_ ("Add Primary Name citation" ), actions )
75
76
77
+ @staticmethod
76
78
def command (dbstate , uistate , track , citation_handle , person_handle ):
77
79
db = dbstate .db
78
80
person = db .get_person_from_handle (person_handle )
@@ -81,6 +83,7 @@ def command(dbstate, uistate, track, citation_handle, person_handle):
81
83
db .commit_person (person , trans )
82
84
83
85
class AlternateName :
86
+ @staticmethod
84
87
def get_actions (dbstate , citation , form_event ):
85
88
db = dbstate .db
86
89
actions = []
@@ -92,6 +95,7 @@ def get_actions(dbstate, citation, form_event):
92
95
lambda dbstate , uistate , track , person_handle = person .handle , alternate_ = alternate : AlternateName .command (dbstate , uistate , track , person_handle , alternate_ )))
93
96
return (_ ("Add alternate name" ), actions )
94
97
98
+ @staticmethod
95
99
def command (dbstate , uistate , track , person_handle , alternate ):
96
100
db = dbstate .db
97
101
person = db .get_person_from_handle (person_handle )
@@ -100,6 +104,7 @@ def command(dbstate, uistate, track, person_handle, alternate):
100
104
db .commit_person (person , trans )
101
105
102
106
class BirthEvent :
107
+ @staticmethod
103
108
def get_actions (dbstate , citation , form_event ):
104
109
db = dbstate .db
105
110
actions = []
@@ -129,6 +134,7 @@ def get_actions(dbstate, citation, form_event):
129
134
return (_ ("Add Birth event" ), actions )
130
135
131
136
class OccupationEvent :
137
+ @staticmethod
132
138
def get_actions (dbstate , citation , form_event ):
133
139
db = dbstate .db
134
140
actions = []
@@ -140,6 +146,7 @@ def get_actions(dbstate, citation, form_event):
140
146
return (_ ("Add Occupation event" ), actions )
141
147
142
148
class ResidenceEvent :
149
+ @staticmethod
143
150
def get_actions (dbstate , citation , form_event ):
144
151
db = dbstate .db
145
152
# build a list of all the people referenced in the form. For 1841, all people have a PRIMARY event role
@@ -159,6 +166,7 @@ def get_actions(dbstate, citation, form_event):
159
166
lambda dbstate , uistate , track , citation_handle = citation .handle , people_handles = people : ResidenceEvent .command (dbstate , uistate , track , citation_handle , form_event .get_date_object (), form_event .get_place_handle (), people_handles )))
160
167
return (_ ("Add Residence event" ), actions )
161
168
169
+ @staticmethod
162
170
def command (dbstate , uistate , track , citation_handle , event_date_object , event_place_handle , people_handles ):
163
171
db = dbstate .db
164
172
# create the RESIDENCE event
0 commit comments