(self)
set up the ajax top and the ajax command
set up the ajax top and the ajax command
set up the ajax top and the ajax command
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)
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 )