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:
Don Allingham 2006-06-27 04:55:07 +00:00
parent 824ee8968c
commit 1aea8327ab
3 changed files with 9 additions and 2 deletions

View File

@ -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.

View File

@ -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] \

View File

@ -24,6 +24,8 @@
Class handling language-specific displaying of names.
"""
from gettext import gettext as _
#-------------------------------------------------------------------------
#
# GRAMPS modules