diff --git a/ChangeLog b/ChangeLog index 3f943d81c..e919b6b3e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-06-26 Don Allingham + * src/Filters/Rules/Person/_HasDeath.py: use references instead of + handles + 2006-06-24 Alex Roitman * src/NameDisplay.py (_format_base): Add format string display; (_format_raw, _format): Add format string methods. diff --git a/src/Filters/Rules/Person/_HasDeath.py b/src/Filters/Rules/Person/_HasDeath.py index d6fa59592..20c17a313 100644 --- a/src/Filters/Rules/Person/_HasDeath.py +++ b/src/Filters/Rules/Person/_HasDeath.py @@ -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] \ diff --git a/src/NameDisplay.py b/src/NameDisplay.py index d737e90c3..dfc67f402 100644 --- a/src/NameDisplay.py +++ b/src/NameDisplay.py @@ -24,6 +24,8 @@ Class handling language-specific displaying of names. """ +from gettext import gettext as _ + #------------------------------------------------------------------------- # # GRAMPS modules