Simple table fix for numneric and checkbox columns
svn: r22234
This commit is contained in:
parent
620ba618c2
commit
7ba9ca93da
@ -104,12 +104,12 @@ class SimpleTable(object):
|
|||||||
retval.append("")
|
retval.append("")
|
||||||
elif isinstance(item, STRTYPE):
|
elif isinstance(item, STRTYPE):
|
||||||
if item == "checkbox":
|
if item == "checkbox":
|
||||||
retval.append("")
|
retval.append(False)
|
||||||
self.set_cell_type(col, "checkbox")
|
self.set_cell_type(col, "checkbox")
|
||||||
else:
|
else:
|
||||||
retval.append(item)
|
retval.append(item)
|
||||||
elif isinstance(item, (int, float)):
|
elif isinstance(item, (int, float)):
|
||||||
retval.append(item)
|
retval.append(conv_to_unicode_direct(item))
|
||||||
self.row_sort_val(col, item)
|
self.row_sort_val(col, item)
|
||||||
elif isinstance(item, Person):
|
elif isinstance(item, Person):
|
||||||
retval.append(self.access.describe(item))
|
retval.append(self.access.describe(item))
|
||||||
@ -266,7 +266,7 @@ class SimpleTable(object):
|
|||||||
if y is None:
|
if y is None:
|
||||||
return False # no markup for this column
|
return False # no markup for this column
|
||||||
else:
|
else:
|
||||||
return conv_to_unicode_direct(data)
|
return data
|
||||||
|
|
||||||
def get_cell_type(self, col):
|
def get_cell_type(self, col):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user