Use cuni rather than unicode

svn: r22987
This commit is contained in:
Doug Blank 2013-09-01 11:20:14 +00:00
parent 124eed0ac7
commit c771b25cb5

View File

@ -165,7 +165,7 @@ class SimpleTable(object):
if (self._link_col == col or link is None):
link = ('Date', item)
elif isinstance(item, Span):
text = unicode(item)
text = conv_to_unicode_direct(item)
retval.append(text)
self.row_sort_val(col, item)
elif isinstance(item, list): # [text, "PersonList", handle, ...]
@ -238,7 +238,7 @@ class SimpleTable(object):
else:
doc.start_link("/%s/%s" %
(obj_type.lower(), handle))
doc.write_text(unicode(col), 'Normal')
doc.write_text(conv_to_unicode_direct(col), 'Normal')
if obj_type and handle:
doc.stop_link()
doc.end_cell()