Add event attributes to Narrative Web Report

svn: r8810
This commit is contained in:
Brian Matherly 2007-08-12 03:12:09 +00:00
parent c7edf38176
commit c418492d5b
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,6 @@
2007-08-11 Brian Matherly <brian@gramps-project.org>
* src/plugins/NarrativeWeb.py: Add event attributes
2007-08-11 Brian Matherly <brian@gramps-project.org> 2007-08-11 Brian Matherly <brian@gramps-project.org>
* src/plugins/NarrativeWeb.py: Convert to use PrivateProxyDb * src/plugins/NarrativeWeb.py: Convert to use PrivateProxyDb
* src/ReportBase/_ReportUtils.py: remove "sanitize" functions. * src/ReportBase/_ReportUtils.py: remove "sanitize" functions.

View File

@ -2255,6 +2255,13 @@ class IndividualPage(BasePage):
text += u"<br>".join(note_text.split("\n")) text += u"<br>".join(note_text.split("\n"))
text += u"</p>" text += u"</p>"
# if the event has a attributes attached to it, get the text and format
# it correctly
for attr in event.get_attribute_list():
text += _("<p>%(type)s: %(value)s</p>") % {
'type' : attr.get_type(),
'value' : attr.get_value() }
return text return text
def get_citation_links(self, source_ref_list): def get_citation_links(self, source_ref_list):