* src/plugins/NavWebPage.py: fix source reference links on the

source page.


svn: r5103
This commit is contained in:
Don Allingham 2005-08-18 02:45:25 +00:00
parent 5df0a7c8a9
commit 62d32ed08a
2 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,6 @@
2005-08-17 Don Allingham <don@gramps-project.org>
* src/plugins/NavWebPage.py: fix source reference links on the
source page.
* src/FamilyView.py: commit person when removed from family
2005-08-18 Eero Tamminen <eerot@sf>

View File

@ -1243,7 +1243,7 @@ class IndividualPage(BasePage):
for sref in sreflist:
lnk = (self.cur_name, self.page_title, self.gid)
shandle = sref.get_base_handle()
if self.src_list.has_key(lnk):
if self.src_list.has_key(shandle):
if lnk not in self.src_list[shandle]:
self.src_list[shandle].append(lnk)
else:
@ -1337,11 +1337,12 @@ class IndividualPage(BasePage):
for nsref in name.get_source_references():
self.src_refs.append(nsref)
nsh = nsref.get_base_handle()
lnk = (self.cur_name, self.page_title, self.gid)
if self.src_list.has_key(nsh):
if self.person.handle not in self.src_list[nsh]:
self.src_list[nsh].append(self.person.handle)
self.src_list[nsh].append(lnk)
else:
self.src_list[nsh] = [self.person.handle]
self.src_list[nsh] = [lnk]
nshl.append(nsref)
if nshl:
of.write( " <sup>")