* src/DisplayModels/_PeopleModel.py: Fix birth date fallback
svn: r7774
This commit is contained in:
parent
9bb495d06a
commit
2ad506f95f
@ -1,3 +1,6 @@
|
||||
2006-12-10 Martin Hawlisch <Martin.Hawlisch@gmx.de>
|
||||
* src/DisplayModels/_PeopleModel.py: Fix birth date fallback
|
||||
|
||||
2006-12-09 Don Allingham <don@gramps-project.org>
|
||||
* src/DataViews/_MediaView.py: external view support for media objects
|
||||
* src/Editors/_EditPlace.py: external view support for media objects
|
||||
|
@ -467,9 +467,10 @@ class PeopleModel(gtk.GenericTreeModel):
|
||||
er = EventRef()
|
||||
er.unserialize(event_ref)
|
||||
event = self.db.get_event_from_handle(er.ref)
|
||||
etype = event.get_type()[0]
|
||||
etype = event.get_type()
|
||||
date_str = DateHandler.get_date(event)
|
||||
if (etype in [EventType.BAPTISM, EventType.CHRISTEN]
|
||||
and er.get_role() == EventRoleType.PRIMARY
|
||||
and date_str != ""):
|
||||
return "<i>" + cgi.escape(date_str) + "</i>"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user