Moved self.build_events() to the conditional statement: if self.inc_events. This way it is not being ran unless you want the event pages.
svn: r13195
This commit is contained in:
parent
c3d079b018
commit
8b2259b86d
@ -4701,14 +4701,10 @@ class NavWebReport(Report):
|
|||||||
|
|
||||||
place_list = {}
|
place_list = {}
|
||||||
source_list = {}
|
source_list = {}
|
||||||
event_dict = []
|
|
||||||
attribute_list = []
|
attribute_list = []
|
||||||
|
|
||||||
self.base_pages()
|
self.base_pages()
|
||||||
|
|
||||||
# build the events dictionary
|
|
||||||
self.build_events(ind_list, event_dict)
|
|
||||||
|
|
||||||
# build classes IndividualListPage and IndividualPage
|
# build classes IndividualListPage and IndividualPage
|
||||||
self.person_pages(ind_list, place_list, source_list)
|
self.person_pages(ind_list, place_list, source_list)
|
||||||
|
|
||||||
@ -4718,9 +4714,11 @@ class NavWebReport(Report):
|
|||||||
# build PlaceListPage and PlacePage
|
# build PlaceListPage and PlacePage
|
||||||
self.place_pages(place_list, source_list)
|
self.place_pages(place_list, source_list)
|
||||||
|
|
||||||
|
|
||||||
# build classes EventListPage and EventPage
|
# build classes EventListPage and EventPage
|
||||||
|
# build the events list only if event pages are being created?
|
||||||
if self.inc_events:
|
if self.inc_events:
|
||||||
|
event_dict = []
|
||||||
|
self.build_events(ind_list, event_dict)
|
||||||
self.event_pages(event_dict)
|
self.event_pages(event_dict)
|
||||||
|
|
||||||
# build classes SourceListPage and SourcePage
|
# build classes SourceListPage and SourcePage
|
||||||
|
Loading…
Reference in New Issue
Block a user