narrativeweb: proxies and filters may hide objects

This commit is contained in:
Doug Blank 2016-05-25 16:18:48 -04:00
parent 0820e70499
commit 898bfb4eae

View File

@ -8328,6 +8328,7 @@ class NavWebReport(Report):
@param: bkref_handle -- The handle associated to this person @param: bkref_handle -- The handle associated to this person
""" """
person = self.database.get_person_from_handle(person_handle) person = self.database.get_person_from_handle(person_handle)
if person:
person_name = self.get_person_name(person) person_name = self.get_person_name(person)
person_fname = self.build_url_fname(person_handle, "ppl", person_fname = self.build_url_fname(person_handle, "ppl",
False) + self.ext False) + self.ext
@ -8335,7 +8336,6 @@ class NavWebReport(Report):
person.gramps_id) person.gramps_id)
self.bkref_dict[Person][person_handle].add((bkref_class, bkref_handle)) self.bkref_dict[Person][person_handle].add((bkref_class, bkref_handle))
if person:
############### Header section ############## ############### Header section ##############
for citation_handle in person.get_citation_list(): for citation_handle in person.get_citation_list():
self._add_citation(citation_handle, Person, person_handle) self._add_citation(citation_handle, Person, person_handle)