def _write_result_handler(self, routine):
self._write_line('<STR_LIT>')<EOL>self._write_execute_rows(routine)<EOL>self._write_line('<STR_LIT>')<EOL>num_of_dict = len(routine['<STR_LIT>'])<EOL>i = <NUM_LIT:0><EOL>while i < num_of_dict:<EOL><INDENT>value = "<STR_LIT>".format(routine['<STR_LIT>'][i])<EOL>stack = '<STR_LIT>'<EOL>j = <NUM_LIT:0><EOL>while j < i:<EOL><INDENT>stack += "<STR_LIT>".format(routine['<STR_LIT>'][j])<EOL>j += <NUM_LIT:1><EOL><DEDENT>line = '<STR_LIT>'.format(value, stack)<EOL>self._write_line(line)<EOL>i += <NUM_LIT:1><EOL><DEDENT>line = '<STR_LIT>'<EOL>for column_name in routine['<STR_LIT>']:<EOL><INDENT>line += "<STR_LIT>".format(column_name)<EOL><DEDENT>line += '<STR_LIT>'<EOL>self._write_line(line)<EOL>self._indent_level_down()<EOL>i = num_of_dict<EOL>while i > <NUM_LIT:0>:<EOL><INDENT>self._write_line('<STR_LIT>')<EOL>part1 = '<STR_LIT>'<EOL>j = <NUM_LIT:0><EOL>while j < i - <NUM_LIT:1>:<EOL><INDENT>part1 += "<STR_LIT>".format(routine['<STR_LIT>'][j])<EOL>j += <NUM_LIT:1><EOL><DEDENT>part1 += "<STR_LIT>".format(routine['<STR_LIT>'][j])<EOL>part2 = '<STR_LIT>'<EOL>j = i - <NUM_LIT:1><EOL>while j < num_of_dict:<EOL><INDENT>if j + <NUM_LIT:1> != i:<EOL><INDENT>part2 += "<STR_LIT>".format(routine['<STR_LIT>'][j])<EOL><DEDENT>j += <NUM_LIT:1><EOL><DEDENT>part2 += "<STR_LIT>" + ('<STR_LIT:}>' * (num_of_dict - i))<EOL>line = "<STR_LIT>".format(part1, part2)<EOL>self._write_line(line)<EOL>self._indent_level_down()<EOL>if i > <NUM_LIT:1>:<EOL><INDENT>self._indent_level_down()<EOL><DEDENT>i -= <NUM_LIT:1><EOL><DEDENT>self._write_line()<EOL>self._write_line('<STR_LIT>')<EOL>
Generates code for calling the stored routine in the wrapper method.