def POST(self, args):
     userlog.addLog(web.ctx.ip,
                    self.__class__.__name__ + " " + get_cur_fun_name(),
                    web.ctx.path + ":" + web.ctx.query + ":" + web.ctx.protocol)
     
     postData = web.input()
     format, left, right = postData.get("format"), postData.get("left_string"), postData.get("right_string")
     
     resultList = stringCompare(format, left, right)
     title, header, footer = getHeaderFooter("stringcompare")
     twoString = {"left_string":left, "right_string":right}
     
     allformats = transformat.readEPTransForamt_stream()
     return render.stringcompare(title, header, footer, format, resultList, twoString, allformats)
 def GET(self, args):
     userlog.addLog(web.ctx.ip,
                    self.__class__.__name__ + " " + get_cur_fun_name(),
                    web.ctx.path + ":" + web.ctx.query + ":" + web.ctx.protocol)
     
     title, header, footer = getHeaderFooter("stringcompare")
     format = """
 2 headLen
 3   firstField    
 4 nocomment
 5 
 6
     """
     left = "12345678901234"
     right = """12345678904321"""
     twoString = {"left_string":left, "right_string":right}
     
     resultList = None
     
     allformats = transformat.readEPTransForamt_stream()
             
     return render.stringcompare(title, header, footer, format, resultList, twoString, allformats)