General polish of some date handling code; fixed a bug in date comparisons involving 'ABT' dates

svn: r10592
This commit is contained in:
Doug Blank
2008-04-19 16:48:46 +00:00
parent e00bce1ebd
commit f637730a87
5 changed files with 29 additions and 12 deletions

View File

@ -232,6 +232,10 @@ class SimpleTable:
self.row_sort_val(col, item.sortval)
if (self.__link_col == col or link == None):
link = ('Date', item)
elif isinstance(item, gen.lib.Span):
text = str(item)
retval.append(text)
self.row_sort_val(col, float(item))
else:
raise AttributeError, ("unknown object type: '%s': %s" %
(item, type(item)))