From 7a44979bc363a2c79fe03160ed192bd010a6237e Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sat, 31 Jan 2004 20:26:36 +0000 Subject: [PATCH] fix update svn: r2730 --- gramps2/src/TransTable.py | 4 ++-- gramps2/src/plugins/Ancestors.py | 2 +- gramps2/src/plugins/IndivComplete.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gramps2/src/TransTable.py b/gramps2/src/TransTable.py index d435d16d4..7610c173c 100644 --- a/gramps2/src/TransTable.py +++ b/gramps2/src/TransTable.py @@ -39,11 +39,11 @@ class TransTable: self.rmap[second] = first def find_value(self,key): - return self.map.setdefault(key,_(key)) + return unicode(self.map.setdefault(key,_(key))) def find_key(self,value): value = unicode(value) - return self.rmap.setdefault(value,value) + return unicode(self.rmap.setdefault(value,value)) def has_key(self,key): return self.map.has_key(key) diff --git a/gramps2/src/plugins/Ancestors.py b/gramps2/src/plugins/Ancestors.py index a61a44483..c6db8bd3c 100644 --- a/gramps2/src/plugins/Ancestors.py +++ b/gramps2/src/plugins/Ancestors.py @@ -736,7 +736,7 @@ class ComprehensiveAncestorsReport (Report.Report): for name in names: paras.append ((self.doc.start_paragraph, ['AR-Details'])) paras.append ((self.doc.write_text, - [const.InverseNameTypesMap[name.getType ()] + + [const.NameTypesMap.get_value(name.getType ()) + ': ' + name.getRegularName ()])) paras.append ((self.doc.end_paragraph, [])) diff --git a/gramps2/src/plugins/IndivComplete.py b/gramps2/src/plugins/IndivComplete.py index 985679cbe..e36e2de4e 100644 --- a/gramps2/src/plugins/IndivComplete.py +++ b/gramps2/src/plugins/IndivComplete.py @@ -233,7 +233,7 @@ class IndivComplete(Report.Report): self.d.end_row() for name in self.person.getAlternateNames(): - type = const.InverseNameTypesMap[name.getType()] + type = const.NameTypesMap.get_value(name.getType()) self.d.start_row() self.normal_cell(type) text = name.getRegularName()