From fd28cfeac7c66a3729faab07b373a6ced18b469a Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Wed, 21 Sep 2005 14:20:46 +0000 Subject: [PATCH] * src/ReportUtils.py: fix typo * src/plugins/NavWebPage.py: handle contact page issues, including random commas and missing image. svn: r5208 --- gramps2/ChangeLog | 5 +++++ gramps2/src/ReportUtils.py | 2 +- gramps2/src/plugins/NavWebPage.py | 22 ++++++++++++++++------ 3 files changed, 22 insertions(+), 7 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index da9ca1425..6852f7eda 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,8 @@ +2005-09-21 Don Allingham + * src/ReportUtils.py: fix typo + * src/plugins/NavWebPage.py: handle contact page issues, including + random commas and missing image. + 2005-09-20 Don Allingham * src/ImgManip.py: update thumbnail if out of date diff --git a/gramps2/src/ReportUtils.py b/gramps2/src/ReportUtils.py index 865e14d97..50ec78932 100644 --- a/gramps2/src/ReportUtils.py +++ b/gramps2/src/ReportUtils.py @@ -1602,7 +1602,7 @@ def buried_str(database,person,person_name=None,empty_date="",empty_place=""): 'male_name' : person_name, 'female_name' : person_name, 'burial_date' : bdate, - 'burial_place' : bplace + 'burial_place' : bplace, 'month_year' : bdate, 'modified_date' : bdate, } diff --git a/gramps2/src/plugins/NavWebPage.py b/gramps2/src/plugins/NavWebPage.py index 67a2eedb7..38633fac4 100644 --- a/gramps2/src/plugins/NavWebPage.py +++ b/gramps2/src/plugins/NavWebPage.py @@ -1238,11 +1238,14 @@ class ContactPage(BasePage): (newpath,thumb_path) = self.copy_media(obj,False) self.store_file(archive,self.html_dir,obj.get_path(), newpath) + + dirpath = self.build_path(note_id,'img') + of.write('
\n') of.write('') of.write('
') of.write('' % obj.get_description()) of.write('
\n') of.write('
\n') @@ -1252,11 +1255,18 @@ class ContactPage(BasePage): r = get_researcher() of.write('
\n') - of.write('%s
\n' % r.name) - of.write('%s
\n' % r.addr) - of.write('%s, %s, %s
\n' % (r.city,r.state,r.postal)) - of.write('%s
\n' % r.country) - of.write('%s
\n' % r.email) + if r.name: + of.write('%s
\n' % r.name.replace(',,,','')) + if r.addr: + of.write('%s
\n' % r.addr) + + text = "".join([r.city,r.state,r.postal]) + if text: + of.write('%s
\n' % text) + if r.country: + of.write('%s
\n' % r.country) + if r.email: + of.write('%s
\n' % r.email) of.write('
\n') of.write('
\n')