fix update
svn: r2730
This commit is contained in:
parent
9b1daf3b41
commit
4f22b0cc17
@ -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)
|
||||
|
@ -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, []))
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user