def twice_log_line(l): name, time, topic, comment = l if topic: col = ColorTable[topic%len(ColorTable)] else: col = 'black' a = cilib.span(name, style='color:'+col) b = cilib.span(str(topic), style='color:'+col) c = cilib.span(comment, style='color:'+col) d = cilib.stamp(time)(*'[]').format('%Y/%m/%d(%a) %X') return cilib.p(a, ' > ', b,' > ', c, d)
def shirakawa_archive_log_line(l): name, time, col, comment = l a = cilib.span(name, style='color:'+col) b = cilib.span(comment, style='color:'+col) c = cilib.stamp(time)(*'[]').format('%Y/%m%d(%a) %X') return cilib.p(a, ' > ', b, c)