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'))