From c418492d5bd253ec392c25fa0840cd65b726a97c Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Sun, 12 Aug 2007 03:12:09 +0000 Subject: [PATCH] Add event attributes to Narrative Web Report svn: r8810 --- ChangeLog | 3 +++ src/plugins/NarrativeWeb.py | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 0623a2d9e..8d452c0e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2007-08-11 Brian Matherly + * src/plugins/NarrativeWeb.py: Add event attributes + 2007-08-11 Brian Matherly * src/plugins/NarrativeWeb.py: Convert to use PrivateProxyDb * src/ReportBase/_ReportUtils.py: remove "sanitize" functions. diff --git a/src/plugins/NarrativeWeb.py b/src/plugins/NarrativeWeb.py index 17e3ca6ee..1d419ff0c 100644 --- a/src/plugins/NarrativeWeb.py +++ b/src/plugins/NarrativeWeb.py @@ -2254,6 +2254,13 @@ class IndividualPage(BasePage): text += u"

" text += u"
".join(note_text.split("\n")) text += u"

" + + # if the event has a attributes attached to it, get the text and format + # it correctly + for attr in event.get_attribute_list(): + text += _("

%(type)s: %(value)s

") % { + 'type' : attr.get_type(), + 'value' : attr.get_value() } return text