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();
     operate = postData.get("operate");
     trans_code = postData.get("trans_code")
     format_code = postData.get("format_code")
     c_format = postData.get("c_format")
     send_example = postData.get("send_example")
     recv_example = postData.get("recv_example")  
           
     if operate == "insert":
         #新插入一天记录到数据库
         transformat.insertDB(trans_code,
             format_code,
             c_format ,
             send_example ,
             recv_example ,)  
         pass
     elif operate == "update" :
         #更新数据库
         transformat.updateDB(trans_code,
             format_code,
             c_format ,
             send_example ,
             recv_example ,)            
         pass
     elif operate == "delete":
         transformat.deleteDB(trans_code,)
     
     title, header, footer = getHeaderFooter("editformat")
     allformats = transformat.readEPTransForamt()
     return render.editformat(title, header, footer, None, None, None, 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("editformat")
     allformats = transformat.readEPTransForamt()
     return render.editformat(title, header, footer, None, None, None, allformats)