From fa6a939fbe9d0aed47a3b054114b2a93c15e015b Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Tue, 10 May 2011 17:57:57 +0000 Subject: [PATCH] 4852: [NarWeb]: urls to indivuals on Events page/base use relative path svn: r17469 --- src/plugins/webreport/NarrativeWeb.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index 3874104ee..4731f75cc 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -350,7 +350,7 @@ class BasePage(object): self.create_media = report.options['gallery'] self.inc_events = report.options['inc_events'] - def complete_people(self, tcell, first_person, handle_list): + def complete_people(self, tcell, first_person, handle_list, up=True): """ completes the person column for classes EventListPage and EventPage @@ -369,7 +369,7 @@ class BasePage(object): if _obj: if check_person_database(_obj): - url = self.report.build_url_fname_html(handle, "ppl", True) + url = self.report.build_url_fname_html(handle, "ppl", up) tcell += self.person_link(url, _obj, _NAME_STYLE_DEFAULT, gid = _obj.get_gramps_id() ) else: tcell += self.get_name(_obj) @@ -2792,11 +2792,11 @@ class EventListPage(BasePage): first_person = True # get person(s) for ColumnPerson - self.complete_people(tcell, first_person, handle_list) + self.complete_people(tcell, first_person, handle_list, up=False) _EVENT_DISPLAYED.append( gid ) first_event = False - datalist.remove("%s" % event_handle) + datalist.remove(str(event_handle)) # add clearline for proper styling # add footer section