5224: NarWeb, associations table appends 1 to person name

svn: r18135
This commit is contained in:
Michiel Nauta 2011-09-09 21:08:37 +00:00
parent 2c52c8cc42
commit 25457c6c1e

View File

@ -5273,14 +5273,14 @@ class IndividualPage(BasePage):
for person_ref in assoclist: for person_ref in assoclist:
if person_ref.ref not in self.report.person_handles: if person_ref.ref not in self.report.person_handles:
continue continue # TODO why skip persons?
trow = Html("tr") trow = Html("tr")
tbody += trow tbody += trow
person = self.report.database.get_person_from_handle(person_ref.ref) person = self.report.database.get_person_from_handle(person_ref.ref)
url = self.report.build_url_fname_html(person.handle, "ppl", True) url = self.report.build_url_fname_html(person.handle, "ppl", True)
person_name = self.get_name(person) person_link = self.person_link(url, person,
person_link = Html("a", person_name, _NAME_STYLE_DEFAULT, href=url, title=html_escape(person_name)) _NAME_STYLE_DEFAULT, gid=person.get_gramps_id())
index = 0 index = 0
for data in [ for data in [