fix update

svn: r2730
This commit is contained in:
Don Allingham 2004-01-31 20:26:36 +00:00
parent 9b1daf3b41
commit 4f22b0cc17
3 changed files with 4 additions and 4 deletions

View File

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

View File

@ -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, []))

View File

@ -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()