def warning_priority_color(color_code):
 if (not color_code):
  return current.messages['NONE']
 return DIV(_style=('width:%(size)s;height:%(size)s;background-color:#%(color)s;' % dict(size='2em', color=color_code)))

def warning_priority_color ( color_code ) : if ( not color_code ) : return current . messages [ 'NONE' ] return DIV ( _style = ( 'width:%(size)s;height:%(size)s;background-color:#%(color)s;' % dict ( size = '2em' , color = color_code ) ) )
shows actual color for hex color code .