From dbab948e8c285e35f31d245767fe2c261547dfec Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Thu, 5 Apr 2007 12:07:05 +0000 Subject: [PATCH] 0000996: Individual attributes do no include source reference citations in Narrative Web report. svn: r8355 --- gramps2/ChangeLog | 4 +++ gramps2/src/plugins/NarrativeWeb.py | 44 ++++++++++++++++++++--------- 2 files changed, 34 insertions(+), 14 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 9913908f5..7fcaeb104 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2007-04-05 Brian Matherly + * src/plugins/NarrativeWeb.py: 0000996: Individual attributes do no include + source reference citations in Narrative Web report. + 2007-04-05 Brian Matherly * src/DateHandler/_DateParser.py: Fix a typo * src/DateEdit.py: Fix a typo diff --git a/gramps2/src/plugins/NarrativeWeb.py b/gramps2/src/plugins/NarrativeWeb.py index 679695e43..1a89fbfa3 100644 --- a/gramps2/src/plugins/NarrativeWeb.py +++ b/gramps2/src/plugins/NarrativeWeb.py @@ -472,20 +472,6 @@ class BasePage: of.write('\n') of.write('\n') - def display_attr_list(self,of,attrlist=None): - if not attrlist: - return - of.write('
\n') - of.write('

%s

\n' % _('Attributes')) - of.write('\n') - - for attr in attrlist: - atType = str( attr.get_type() ) - of.write('' % atType) - of.write('\n' % attr.get_value()) - of.write('
%s%s
\n') - of.write('
\n') - def display_references(self,of,db,handlelist): if not handlelist: return @@ -936,6 +922,20 @@ class MediaPage(BasePage): self.display_footer(of,db) self.close_file(of) + def display_attr_list(self,of,attrlist=None): + if not attrlist: + return + of.write('
\n') + of.write('

%s

\n' % _('Attributes')) + of.write('\n') + + for attr in attrlist: + atType = str( attr.get_type() ) + of.write('' % atType) + of.write('\n' % attr.get_value()) + of.write('
%s%s
\n') + of.write('
\n') + def copy_source_file(self,handle,photo): ext = os.path.splitext(photo.get_path())[1] to_dir = self.build_path(handle,'images') @@ -1466,6 +1466,22 @@ class IndividualPage(BasePage): self.display_footer(of,db) self.close_file(of) + def display_attr_list(self,of,attrlist=None): + if not attrlist: + return + of.write('
\n') + of.write('

%s

\n' % _('Attributes')) + of.write('\n') + + for attr in attrlist: + atType = str( attr.get_type() ) + of.write('' % atType) + value = attr.get_value() + value += self.get_citation_links( attr.get_source_references() ) + of.write('\n' % value) + of.write('
%s%s
\n') + of.write('
\n') + def draw_box(self,of,center,col,person): top = center - HEIGHT/2 xoff = XOFFSET+col*(WIDTH+HGAP)