4852: [NarWeb]: urls to indivuals on Events page/base use relative path

svn: r17469
This commit is contained in:
Doug Blank 2011-05-10 17:57:57 +00:00
parent a78ca7f65f
commit fa6a939fbe

View File

@ -350,7 +350,7 @@ class BasePage(object):
self.create_media = report.options['gallery'] self.create_media = report.options['gallery']
self.inc_events = report.options['inc_events'] 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 completes the person column for classes EventListPage and EventPage
@ -369,7 +369,7 @@ class BasePage(object):
if _obj: if _obj:
if check_person_database(_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() ) tcell += self.person_link(url, _obj, _NAME_STYLE_DEFAULT, gid = _obj.get_gramps_id() )
else: else:
tcell += self.get_name(_obj) tcell += self.get_name(_obj)
@ -2792,11 +2792,11 @@ class EventListPage(BasePage):
first_person = True first_person = True
# get person(s) for ColumnPerson # 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 ) _EVENT_DISPLAYED.append( gid )
first_event = False first_event = False
datalist.remove("%s" % event_handle) datalist.remove(str(event_handle))
# add clearline for proper styling # add clearline for proper styling
# add footer section # add footer section