From ed41f66ebf8cd9406ddb84bee62579b1df8b9c34 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Fri, 12 Aug 2005 21:32:56 +0000 Subject: [PATCH] Use translated event names; properly test for events. svn: r5071 --- gramps2/ChangeLog | 2 +- gramps2/src/plugins/NavWebPage.py | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index de9e1a400..5679587bd 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -4,7 +4,7 @@ events; Replace garbage event_list with empty list for both types. * src/plugins/NavWebPage.py (display_ind_events,display_spouse): - Use translated event names. + Use translated event names; properly test for events. 2005-08-12 Jiri Pejchal * src/po/cs.po: Updated Czech translation. diff --git a/gramps2/src/plugins/NavWebPage.py b/gramps2/src/plugins/NavWebPage.py index 5a863aee7..506054b3b 100644 --- a/gramps2/src/plugins/NavWebPage.py +++ b/gramps2/src/plugins/NavWebPage.py @@ -435,8 +435,6 @@ class BasePage: handle = self.lnkfmt(name) dirpath = self.build_path(handle,'srn',up) - print self.levels, dirpath - of.write('%s' % (dirpath,handle,self.ext,name)) if opt_val != None: of.write(' (%d)' % opt_val) @@ -1360,7 +1358,12 @@ class IndividualPage(BasePage): of.write('\n\n\n') def display_ind_events(self,of): - if len(self.person.get_event_list()) == 0: + all_events = [handle for handle in [self.person.get_birth_handle(), + self.person.get_death_handle()] + if handle] + self.person.get_event_list() + print all_events + + if not all_events: return of.write('

%s

\n' % _('Events'))