2007-11-03 Gary Burton <gary.burton@zen.co.uk>

* src/plugins/DetDescendantReport.py
	* src/plugins/DetAncestralReport.py
	Added functionality to print event and event reference notes. issue #1335



svn: r9293
This commit is contained in:
Gary Burton 2007-11-03 22:11:52 +00:00
parent d89d56af71
commit ce79322bdf
3 changed files with 33 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-11-03 Gary Burton <gary.burton@zen.co.uk>
* src/plugins/DetDescendantReport.py
* src/plugins/DetAncestralReport.py
Added functionality to print event and event reference notes. issue #1335
2007-11-02 Stéphane Charette <stephanecharette@gmail.com>
* src/plugins/NarrativeWeb.py: issue #1340, do not display mime-types
in NarrativeWeb for image/*

View File

@ -369,6 +369,20 @@ class DetAncestorReport(Report):
self.doc.write_text(event.get_description())
self.doc.write_text(".")
self.doc.end_paragraph()
if self.includeNotes:
# if the event or event reference has a note attached to it,
# get the text and format it correctly
note = event.get_note()
if note != "":
self.doc.start_paragraph('DAR-MoreDetails')
self.doc.write_text(note)
self.doc.end_paragraph()
note = event_ref.get_note()
if note != "":
self.doc.start_paragraph('DAR-MoreDetails')
self.doc.write_text(note)
self.doc.end_paragraph()
def write_parents(self, person, firstName):
family_handle = person.get_main_parents_family_handle()

View File

@ -398,6 +398,20 @@ class DetDescendantReport(Report):
self.doc.write_text(".")
self.doc.end_paragraph()
if self.includeNotes:
# if the event or event reference has a note attached to it,
# get the text and format it correctly
note = event.get_note()
if note != "":
self.doc.start_paragraph('DDR-MoreDetails')
self.doc.write_text(note)
self.doc.end_paragraph()
note = event_ref.get_note()
if note != "":
self.doc.start_paragraph('DDR-MoreDetails')
self.doc.write_text(note)
self.doc.end_paragraph()
def write_parents(self, person, firstName):
family_handle = person.get_main_parents_family_handle()
if family_handle: