Don't print b. and d. if not used

svn: r1481
This commit is contained in:
Don Allingham 2003-04-30 03:33:20 +00:00
parent d2967baf83
commit 69eb302f86

View File

@ -301,9 +301,17 @@ class FamilyView:
self.clear() self.clear()
return return
n = "%s\n\tb. %s\n\td. %s " % (GrampsCfg.nameof(self.person), bd = self.person.getBirth().getDate()
self.person.getBirth().getDate(), dd = self.person.getDeath().getDate()
self.person.getDeath().getDate())
if bd and dd:
n = "%s\n\tb. %s\n\td. %s " % (GrampsCfg.nameof(self.person),bd,dd)
elif bd:
n = "%s\n\tb. %s" % (GrampsCfg.nameof(self.person),bd)
elif dd:
n = "%s\n\td. %s" % (GrampsCfg.nameof(self.person),dd)
else:
n = GrampsCfg.nameof(self.person)
self.ap_model.clear() self.ap_model.clear()
self.ap_data.get_selection().set_mode(gtk.SELECTION_NONE) self.ap_data.get_selection().set_mode(gtk.SELECTION_NONE)