2006-06-26 Don Allingham <don@gramps-project.org>
* src/Filters/Rules/Person/_HasDeath.py: use references instead of handles svn: r6968
This commit is contained in:
parent
824ee8968c
commit
1aea8327ab
@ -1,3 +1,7 @@
|
||||
2006-06-26 Don Allingham <don@gramps-project.org>
|
||||
* src/Filters/Rules/Person/_HasDeath.py: use references instead of
|
||||
handles
|
||||
|
||||
2006-06-24 Alex Roitman <shura@gramps-project.org>
|
||||
* src/NameDisplay.py (_format_base): Add format string display;
|
||||
(_format_raw, _format): Add format string methods.
|
||||
|
@ -57,9 +57,10 @@ class HasDeath(Rule):
|
||||
self.date = None
|
||||
|
||||
def apply(self,db,person):
|
||||
event_handle = person.get_death_handle()
|
||||
if not event_handle:
|
||||
event_ref = person.get_death_ref()
|
||||
if not event_ref:
|
||||
return False
|
||||
event_handle = event_ref.ref
|
||||
event = db.get_event_from_handle(event_handle)
|
||||
ed = event.get_description().upper()
|
||||
if self.list[2] \
|
||||
|
@ -24,6 +24,8 @@
|
||||
Class handling language-specific displaying of names.
|
||||
"""
|
||||
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# GRAMPS modules
|
||||
|
Loading…
Reference in New Issue
Block a user