Add event attributes to Narrative Web Report
svn: r8810
This commit is contained in:
parent
c7edf38176
commit
c418492d5b
@ -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.
|
||||||
|
@ -2254,6 +2254,13 @@ class IndividualPage(BasePage):
|
|||||||
text += u"<p>"
|
text += u"<p>"
|
||||||
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user