src/plugins/IndivComplete.py: handle multiple notes
svn: r8306
This commit is contained in:
parent
071d7cc6ec
commit
1b93bf11ea
@ -1,3 +1,6 @@
|
|||||||
|
2007-03-20 Brian Matherly <brian@gramps-project.org>
|
||||||
|
* src/plugins/IndivComplete.py: handle multiple notes
|
||||||
|
|
||||||
2007-03-19 Brian Matherly <brian@gramps-project.org>
|
2007-03-19 Brian Matherly <brian@gramps-project.org>
|
||||||
* src/plugins/GraphViz.py: fix NameDisplay include
|
* src/plugins/GraphViz.py: fix NameDisplay include
|
||||||
|
|
||||||
|
@ -153,10 +153,11 @@ class IndivCompleteReport(Report):
|
|||||||
self.doc.end_superscript()
|
self.doc.end_superscript()
|
||||||
self.doc.end_paragraph()
|
self.doc.end_paragraph()
|
||||||
|
|
||||||
note = event.get_note()
|
for notehandle in event.get_note_list():
|
||||||
if note:
|
note = self.database.get_note_from_handle(notehandle)
|
||||||
format = event.get_note_format()
|
text = note.get()
|
||||||
self.doc.write_note(note,format,'IDS-Normal')
|
format = note.get_format()
|
||||||
|
self.doc.write_note(text,format,'IDS-Normal')
|
||||||
|
|
||||||
self.doc.end_cell()
|
self.doc.end_cell()
|
||||||
self.doc.end_row()
|
self.doc.end_row()
|
||||||
@ -173,8 +174,8 @@ class IndivCompleteReport(Report):
|
|||||||
self.doc.end_row()
|
self.doc.end_row()
|
||||||
|
|
||||||
def write_note(self):
|
def write_note(self):
|
||||||
note = self.start_person.get_note()
|
notelist = self.start_person.get_note_list()
|
||||||
if note == '':
|
if not notelist:
|
||||||
return
|
return
|
||||||
self.doc.start_table('note','IDS-IndTable')
|
self.doc.start_table('note','IDS-IndTable')
|
||||||
self.doc.start_row()
|
self.doc.start_row()
|
||||||
@ -185,10 +186,14 @@ class IndivCompleteReport(Report):
|
|||||||
self.doc.end_cell()
|
self.doc.end_cell()
|
||||||
self.doc.end_row()
|
self.doc.end_row()
|
||||||
|
|
||||||
|
for notehandle in notelist:
|
||||||
|
note = self.database.get_note_from_handle(notehandle)
|
||||||
|
text = note.get()
|
||||||
|
format = note.get_format()
|
||||||
self.doc.start_row()
|
self.doc.start_row()
|
||||||
self.doc.start_cell('IDS-NormalCell',2)
|
self.doc.start_cell('IDS-NormalCell',2)
|
||||||
format = self.start_person.get_note_format()
|
format = self.start_person.get_note_format()
|
||||||
self.doc.write_note(note,format,'IDS-Normal')
|
self.doc.write_note(text,format,'IDS-Normal')
|
||||||
self.doc.end_cell()
|
self.doc.end_cell()
|
||||||
self.doc.end_row()
|
self.doc.end_row()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user