fix path hierarchy

svn: r5072
This commit is contained in:
Don Allingham 2005-08-12 22:06:11 +00:00
parent ed41f66ebf
commit 1cffbd5998

View File

@ -420,7 +420,8 @@ class BasePage:
else:
return base + "." + self.ext
def person_link(self,of,path,name,gid=""):
def person_link(self,of,path,name,gid="",up=True):
if up:
if self.levels == 1:
path = "../../" + path
elif self.levels == 2:
@ -528,7 +529,7 @@ class IndividualListPage(BasePage):
path = self.build_path(person.handle,"ppl",False)
self.person_link(of, self.build_name(path,person.handle),
person.get_primary_name().get_first_name(),
person.gramps_id)
person.gramps_id,False)
of.write('</td><td class="field">')
birth_handle = person.get_birth_handle()
if birth_handle:
@ -574,7 +575,7 @@ class SurnamePage(BasePage):
path = self.build_path(person.handle,"ppl",False)
self.person_link(of, self.build_name(path,person.handle),
person.get_primary_name().get_first_name(),
person.gramps_id)
person.gramps_id,False)
of.write('</td><td class="field">')
birth_handle = person.get_birth_handle()
if birth_handle:
@ -1818,7 +1819,7 @@ class WebReport(Report.Report):
ind_list, place_list, source_list,
self.options, archive, photo_list, levels)
if len(ind_list) > 1:
if len(ind_list) > 0:
IndividualListPage(self.database, self.title, ind_list,
self.options, archive, photo_list, levels)
SurnameListPage(self.database, self.title, ind_list,