the three proxy invocations should be nearby, for ease of understanding
This commit is contained in:
parent
c469240c65
commit
43550a9a52
@ -100,6 +100,7 @@ class AncestorReport(Report):
|
|||||||
|
|
||||||
stdoptions.run_private_data_option(self, menu)
|
stdoptions.run_private_data_option(self, menu)
|
||||||
stdoptions.run_living_people_option(self, menu, rlocale)
|
stdoptions.run_living_people_option(self, menu, rlocale)
|
||||||
|
self.database = CacheProxyDb(self.database)
|
||||||
|
|
||||||
self.max_generations = menu.get_option_by_name('maxgen').get_value()
|
self.max_generations = menu.get_option_by_name('maxgen').get_value()
|
||||||
self.pgbrk = menu.get_option_by_name('pagebbg').get_value()
|
self.pgbrk = menu.get_option_by_name('pagebbg').get_value()
|
||||||
@ -111,8 +112,6 @@ class AncestorReport(Report):
|
|||||||
|
|
||||||
stdoptions.run_name_format_option(self, menu)
|
stdoptions.run_name_format_option(self, menu)
|
||||||
|
|
||||||
self.database = CacheProxyDb(self.database)
|
|
||||||
|
|
||||||
self.__narrator = Narrator(self.database, use_fulldate=True,
|
self.__narrator = Narrator(self.database, use_fulldate=True,
|
||||||
nlocale=rlocale)
|
nlocale=rlocale)
|
||||||
|
|
||||||
|
@ -77,6 +77,7 @@ class RecordsReport(Report):
|
|||||||
stdoptions.run_private_data_option(self, menu)
|
stdoptions.run_private_data_option(self, menu)
|
||||||
living_opt = stdoptions.run_living_people_option(self, menu,
|
living_opt = stdoptions.run_living_people_option(self, menu,
|
||||||
self._locale)
|
self._locale)
|
||||||
|
self.database = CacheProxyDb(self.database)
|
||||||
|
|
||||||
self._lv = menu.get_option_by_name('living_people').get_value()
|
self._lv = menu.get_option_by_name('living_people').get_value()
|
||||||
for (value, description) in living_opt.get_items(xml_items=True):
|
for (value, description) in living_opt.get_items(xml_items=True):
|
||||||
@ -100,8 +101,6 @@ class RecordsReport(Report):
|
|||||||
|
|
||||||
self._nf = stdoptions.run_name_format_option(self, menu)
|
self._nf = stdoptions.run_name_format_option(self, menu)
|
||||||
|
|
||||||
self.database = CacheProxyDb(self.database)
|
|
||||||
|
|
||||||
def write_report(self):
|
def write_report(self):
|
||||||
"""
|
"""
|
||||||
Build the actual report.
|
Build the actual report.
|
||||||
|
@ -88,6 +88,7 @@ class TagReport(Report):
|
|||||||
|
|
||||||
stdoptions.run_private_data_option(self, menu)
|
stdoptions.run_private_data_option(self, menu)
|
||||||
living_opt = stdoptions.run_living_people_option(self, menu, rlocale)
|
living_opt = stdoptions.run_living_people_option(self, menu, rlocale)
|
||||||
|
self.database = CacheProxyDb(self.database)
|
||||||
|
|
||||||
self._lv = menu.get_option_by_name('living_people').get_value()
|
self._lv = menu.get_option_by_name('living_people').get_value()
|
||||||
for (value, description) in living_opt.get_items(xml_items=True):
|
for (value, description) in living_opt.get_items(xml_items=True):
|
||||||
@ -104,8 +105,6 @@ class TagReport(Report):
|
|||||||
|
|
||||||
stdoptions.run_name_format_option(self, menu)
|
stdoptions.run_name_format_option(self, menu)
|
||||||
|
|
||||||
self.database = CacheProxyDb(self.database)
|
|
||||||
|
|
||||||
def write_report(self):
|
def write_report(self):
|
||||||
self.doc.start_paragraph("TR-Title")
|
self.doc.start_paragraph("TR-Title")
|
||||||
# feature request 2356: avoid genitive form
|
# feature request 2356: avoid genitive form
|
||||||
|
Loading…
x
Reference in New Issue
Block a user