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')