def output_footer(func,output,pgm_name): if func == 'all': footer = open(FOOTER_PATH,'r').read() twriter = FileWriter(output) twriter.append(footer) twriter.close() print "%s's footer written" % pgm_name else: print "%s's footer not written cause func incr" % pgm_name
def output_div(output,base_dict,pgm_name): twriter = FileWriter(output) twriter.append(''.join(set_div(base_dict))) twriter.close() print "%s's base case devide written" % pgm_name
def output_set_vals(output,base_dict,special_dict,pgm_name): twriter = FileWriter(output) twriter.append(''.join(set_vals(base_dict,'base',reverse=True))) twriter.append(''.join(set_vals(special_dict,'special'))) twriter.close() print "%s's set point written" % pgm_name
def output_watch_vals(output,base_dict,special_dict,pgm_name): twriter = FileWriter(output) twriter.append(''.join(watch_vals(base_dict,reverse=True))) twriter.append(''.join(watch_vals(special_dict))) twriter.close() print "%s's watch point written" % pgm_name