* src/DisplayModels/_PeopleModel.py: Fix birth date fallback
svn: r7774
This commit is contained in:
parent
41ff120b1a
commit
5f0779a136
@ -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>
|
2006-12-09 Don Allingham <don@gramps-project.org>
|
||||||
* src/DataViews/_MediaView.py: external view support for media objects
|
* src/DataViews/_MediaView.py: external view support for media objects
|
||||||
* src/Editors/_EditPlace.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 = EventRef()
|
||||||
er.unserialize(event_ref)
|
er.unserialize(event_ref)
|
||||||
event = self.db.get_event_from_handle(er.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)
|
date_str = DateHandler.get_date(event)
|
||||||
if (etype in [EventType.BAPTISM, EventType.CHRISTEN]
|
if (etype in [EventType.BAPTISM, EventType.CHRISTEN]
|
||||||
|
and er.get_role() == EventRoleType.PRIMARY
|
||||||
and date_str != ""):
|
and date_str != ""):
|
||||||
return "<i>" + cgi.escape(date_str) + "</i>"
|
return "<i>" + cgi.escape(date_str) + "</i>"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user