From 3c0376029cb5d93dcda8432d86e54c138d54b3ff Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Mon, 16 Jun 2003 17:22:09 +0000 Subject: [PATCH] * src/PedView.py (DispBox.__init__): Conditional display of "b." and "d." strings depending on the availability of the appropriate date. * NEWS: Start new section for 0.9.3 release. svn: r1754 --- ChangeLog | 3 +++ NEWS | 13 +++++++++++++ src/PedView.py | 14 +++++++++++--- 3 files changed, 27 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 97fde3bbb..16dc6fac0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,9 @@ * src/plugins/FtmStyleAncestors.py, src/plugins/FtmStyleDescendants.py: Remove options_dialog function as it is not nedded anymore. * src/plugins/BookReport.py: Add lots of doc strings. + * src/PedView.py (DispBox.__init__): Conditional display of "b." + and "d." strings depending on the availability of the appropriate date. + * NEWS: Start new section for 0.9.3 release. 2003-06-14 Don Allingham * src/gramps.glade: added select/edit buttions to family view diff --git a/NEWS b/NEWS index 7583174fb..40b819b63 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,16 @@ +Version 0.9.3 +* New reports: Ancestors (text), Fan Chart (graphics), and + Book (collection of any number of any reports in a single document). +* Improved autocompletion for long strings. +* I18n improvements. +* Proper handling of superscripts in all text reports. +* Version control improvements. +* Drag-n-drop improvements. +* Improved Family View. +* Fixed duplicate people problem. +* Imporved sharing of a single database between the users. +* Many dozens of bug fixes. + Version 0.9.2 * Fixed pedigree view problem that prevented display from updating * Fixed duplicate place problem. diff --git a/src/PedView.py b/src/PedView.py index d19f365e7..3e319865f 100644 --- a/src/PedView.py +++ b/src/PedView.py @@ -58,9 +58,17 @@ class DispBox: self.root = root self.name = GrampsCfg.nameof(person) - self.exp = "%s\n%s %s\n%s %s" % (self.name, - _BORN,person.getBirth().getDate(), - _DIED, person.getDeath().getDate()) + bd = person.getBirth().getDate() + dd = person.getDeath().getDate() + if bd and dd: + self.exp = "%s\n%s %s\n%s %s" % (self.name,_BORN,bd,_DIED,dd ) + elif bd: + self.exp = "%s\n%s %s" % (self.name,_BORN,bd ) + elif dd: + self.exp = "%s\n%s %s" % (self.name,_DIED,dd ) + else: + self.exp = "%s" % self.name + self.group = self.root.add(gnome.canvas.CanvasGroup,x=x,y=y) self.shadow = self.group.add(gnome.canvas.CanvasRect,