* src/ToolTips.py (PersonTip.get_tip): Use new birth_ref interface.

svn: r5622
This commit is contained in:
Alex Roitman 2005-12-23 02:04:54 +00:00
parent 79a520b949
commit c30167137c
2 changed files with 4 additions and 3 deletions

View File

@ -2,6 +2,7 @@
* test/RunAllTests.py: Change header.
* src/EventEdit.py: Fix build_ methods.
* src/MediaView.py: Skip empty selections.
* src/ToolTips.py (PersonTip.get_tip): Use new birth_ref interface.
2005-12-22 Don Allingham <don@gramps-project.org>
* src/DisplayState.py: window management improvements

View File

@ -179,9 +179,9 @@ class PersonTip:
global escape
birth_str = ""
birth_handle = self._obj.get_birth_handle()
if birth_handle:
birth = self._db.get_event_from_handle(birth_handle)
birth_ref = self._obj.get_birth_ref()
if birth_ref:
birth = self._db.get_event_from_handle(birth_ref.ref)
date_str = DateHandler.get_date(birth)
if date_str != "":
birth_str = escape(date_str)