parameters: (self, td)
docstring: background color is better handled on td directly
docstring_summary: background color is better handled on td directly
docstring_tokens: background color is better handled on td directly
function: def handle_td(self, td):
          '''background color is better handled on td directly'''
  
          self.init_data()
  
          if self.mode == 'critical':
              td.add_style("background: #e84a4d")
          elif self.mode == 'today':
              td.add_style("background: #a3d991")
          elif self.mode == 'warning_1':
              td.add_style("background: #e9e386")
          elif self.mode == 'warning_2':
              td.add_style("background: #ecbf7f")
          elif self.mode == 'done':
              pass
          #else:
          #    td.add_style("background: #FFF")
  
          td.add_attr("spt_input_value", self.get_value())
  
  
          super(TaskDaysDueElementWdg, self).handle_td(td)
function_tokens: def handle_td ( self , td ) : self . init_data ( ) if self . mode == 'critical' : td . add_style ( "background: #e84a4d" ) elif self . mode == 'today' : td . add_style ( "background: #a3d991" ) elif self . mode == 'warning_1' : td . add_style ( "background: #e9e386" ) elif self . mode == 'warning_2' : td . add_style ( "background: #ecbf7f" ) elif self . mode == 'done' : pass #else: #    td.add_style("background: #FFF") td . add_attr ( "spt_input_value" , self . get_value ( ) ) super ( TaskDaysDueElementWdg , self ) . handle_td ( td )