Display and sort invalid dates better
svn: r10593
This commit is contained in:
parent
f637730a87
commit
10d5232085
@ -228,8 +228,12 @@ class SimpleTable:
|
|||||||
link = ('Note', item.handle)
|
link = ('Note', item.handle)
|
||||||
elif isinstance(item, gen.lib.Date):
|
elif isinstance(item, gen.lib.Date):
|
||||||
text = DateHandler.displayer.display(item)
|
text = DateHandler.displayer.display(item)
|
||||||
retval.append(text)
|
if item.get_valid():
|
||||||
self.row_sort_val(col, item.sortval)
|
retval.append(text)
|
||||||
|
self.row_sort_val(col, item.sortval)
|
||||||
|
else:
|
||||||
|
retval.append("Invalid: " + text)
|
||||||
|
self.row_sort_val(col, -1)
|
||||||
if (self.__link_col == col or link == None):
|
if (self.__link_col == col or link == None):
|
||||||
link = ('Date', item)
|
link = ('Date', item)
|
||||||
elif isinstance(item, gen.lib.Span):
|
elif isinstance(item, gen.lib.Span):
|
||||||
|
Loading…
Reference in New Issue
Block a user