@@ -168,92 +168,92 @@ def get_note_from_handle(self, handle):
168
168
return note
169
169
return None
170
170
171
- def get_person_from_gramps_id (self , val ):
171
+ def get_person_from_gramps_id (self , gramps_id ):
172
172
"""
173
173
Finds a Person in the database from the passed Gramps ID.
174
174
If no such Person exists, None is returned.
175
175
"""
176
- person = self .db .get_person_from_gramps_id (val )
176
+ person = self .db .get_person_from_gramps_id (gramps_id )
177
177
if person and not person .get_privacy ():
178
178
return sanitize_person (self .db , person )
179
179
return None
180
180
181
- def get_family_from_gramps_id (self , val ):
181
+ def get_family_from_gramps_id (self , gramps_id ):
182
182
"""
183
183
Finds a Family in the database from the passed Gramps ID.
184
184
If no such Family exists, None is returned.
185
185
"""
186
- family = self .db .get_family_from_gramps_id (val )
186
+ family = self .db .get_family_from_gramps_id (gramps_id )
187
187
if family and not family .get_privacy ():
188
188
return sanitize_family (self .db , family )
189
189
return None
190
190
191
- def get_event_from_gramps_id (self , val ):
191
+ def get_event_from_gramps_id (self , gramps_id ):
192
192
"""
193
193
Finds an Event in the database from the passed Gramps ID.
194
194
If no such Event exists, None is returned.
195
195
"""
196
- event = self .db .get_event_from_gramps_id (val )
196
+ event = self .db .get_event_from_gramps_id (gramps_id )
197
197
if event and not event .get_privacy ():
198
198
return sanitize_event (self .db , event )
199
199
return None
200
200
201
- def get_place_from_gramps_id (self , val ):
201
+ def get_place_from_gramps_id (self , gramps_id ):
202
202
"""
203
203
Finds a Place in the database from the passed Gramps ID.
204
204
If no such Place exists, None is returned.
205
205
"""
206
- place = self .db .get_place_from_gramps_id (val )
206
+ place = self .db .get_place_from_gramps_id (gramps_id )
207
207
if place and not place .get_privacy ():
208
208
return sanitize_place (self .db , place )
209
209
return None
210
210
211
- def get_source_from_gramps_id (self , val ):
211
+ def get_source_from_gramps_id (self , gramps_id ):
212
212
"""
213
213
Finds a Source in the database from the passed Gramps ID.
214
214
If no such Source exists, None is returned.
215
215
"""
216
- source = self .db .get_source_from_gramps_id (val )
216
+ source = self .db .get_source_from_gramps_id (gramps_id )
217
217
if source and not source .get_privacy ():
218
218
return sanitize_source (self .db , source )
219
219
return None
220
220
221
- def get_citation_from_gramps_id (self , val ):
221
+ def get_citation_from_gramps_id (self , gramps_id ):
222
222
"""
223
223
Finds a Citation in the database from the passed Gramps ID.
224
224
If no such Citation exists, None is returned.
225
225
"""
226
- citation = self .db .get_citation_from_gramps_id (val )
226
+ citation = self .db .get_citation_from_gramps_id (gramps_id )
227
227
if citation and not citation .get_privacy ():
228
228
return sanitize_citation (self .db , citation )
229
229
return None
230
230
231
- def get_media_from_gramps_id (self , val ):
231
+ def get_media_from_gramps_id (self , gramps_id ):
232
232
"""
233
233
Finds a Media in the database from the passed Gramps ID.
234
234
If no such Media exists, None is returned.
235
235
"""
236
- obj = self .db .get_media_from_gramps_id (val )
236
+ obj = self .db .get_media_from_gramps_id (gramps_id )
237
237
if obj and not obj .get_privacy ():
238
238
return sanitize_media (self .db , obj )
239
239
return None
240
240
241
- def get_repository_from_gramps_id (self , val ):
241
+ def get_repository_from_gramps_id (self , gramps_id ):
242
242
"""
243
243
Finds a Repository in the database from the passed Gramps ID.
244
244
If no such Repository exists, None is returned.
245
245
"""
246
- repository = self .db .get_repository_from_gramps_id (val )
246
+ repository = self .db .get_repository_from_gramps_id (gramps_id )
247
247
if repository and not repository .get_privacy ():
248
248
return sanitize_repository (self .db , repository )
249
249
return None
250
250
251
- def get_note_from_gramps_id (self , val ):
251
+ def get_note_from_gramps_id (self , gramps_id ):
252
252
"""
253
253
Finds a Note in the database from the passed Gramps ID.
254
254
If no such Note exists, None is returned.
255
255
"""
256
- note = self .db .get_note_from_gramps_id (val )
256
+ note = self .db .get_note_from_gramps_id (gramps_id )
257
257
if note and not note .get_privacy ():
258
258
return note
259
259
return None
0 commit comments