parameters: (self)
docstring: set up the ajax top and the ajax command
docstring_summary: set up the ajax top and the ajax command
docstring_tokens: set up the ajax top and the ajax command
function: def init_setup(self):
          ''' set up the ajax top and the ajax command '''
          div_id = 'main_div_general'
          cmd_id = 'cal_general'
  
          if self.task:
              div_id = 'main_div_%s' %self.task.get_id()
              cmd_id = 'cal_%s' %self.task.get_id()
              
          self.main_div = DivWdg(id=div_id)
          self.set_ajax_top(self.main_div)
          
          self.cmd = AjaxCmd(cmd_id)
          self.cmd.add_element_name(self.week_element_name) 
          self.cmd.add_element_name(self.year_element_name)
function_tokens: def init_setup ( self ) : div_id = 'main_div_general' cmd_id = 'cal_general' if self . task : div_id = 'main_div_%s' % self . task . get_id ( ) cmd_id = 'cal_%s' % self . task . get_id ( ) self . main_div = DivWdg ( id = div_id ) self . set_ajax_top ( self . main_div ) self . cmd = AjaxCmd ( cmd_id ) self . cmd . add_element_name ( self . week_element_name ) self . cmd . add_element_name ( self . year_element_name )