add "living people" option to TimeLine report

This commit is contained in:
Paul Franklin 2016-03-31 12:10:15 -07:00
parent 4136d22509
commit 3c9f9901e6

View File

@ -94,12 +94,15 @@ class TimeLine(Report):
sortby - Sorting method to be used.
name_format - Preferred format to display names
incl_private - Whether to include private data
living_people - How to handle living people
years_past_death - Consider as living this many years after death
"""
Report.__init__(self, database, options, user)
self._user = user
menu = options.menu
stdoptions.run_private_data_option(self, menu)
stdoptions.run_living_people_option(self, menu)
self.filter = menu.get_option_by_name('filter').get_filter()
@ -400,6 +403,8 @@ class TimeLineOptions(MenuReportOptions):
stdoptions.add_private_data_option(menu, category_name)
stdoptions.add_living_people_option(menu, category_name)
sortby = EnumeratedListOption(_('Sort by'), 0 )
idx = 0
for item in _get_sort_functions(Sort(self.__db)):