def get_old_cet(xh): """ 查询往年四六级成绩 """ c = CET() table = c.get_cet_table(xh) return table
def get_old_cet(xh): """ 查询往年四六级成绩 """ c=CET() table = c.get_cet_table(xh) return table
def POST(self): data=web.input() nu = data.nu name=data.name.encode('utf-8') cet = CET() result = cet.get_last_cet_score(nu,name) result = json.dumps(result) return result
def POST(self): data = web.input() try: nu = data.nu name = data.name.encode('utf-8') except AttributeError: return json_err("can not find your post content") cet = CET() result = cet.get_last_cet_score(nu, name) result = json.dumps(result) return result
def POST(self): form = cet_form() if not form.validates(): return render.cet(form=form) else: zkzh = form.d.zkzh name = form.d.name name = name.encode('utf-8') items = ["学校", "姓名", "阅读", "写作", "综合", "准考证号", "考试时间", "总分", "考试类别", "听力"] cet = CET() res = cet.get_last_cet_score(zkzh, name) return render.result_dic(items=items, res=res)
def POST(self): form = cet_form() if not form.validates(): return render.cet(form=form) else: zkzh = form.d.zkzh name = form.d.name name = name.encode('utf-8') items = [ "学校", "姓名", "阅读", "写作", "综合", "准考证号", "考试时间", "总分", "考试类别", "听力" ] cet = CET() res = cet.get_last_cet_score(zkzh, name) return render.result_dic(items=items, res=res)
def POST(self): form = cet_form() if not form.validates(): return render.cet(form) else: zkzh = form.d.zkzh name = form.d.name name = name.encode('utf-8') items = ["学校","姓名","阅读","写作","综合", "准考证号", "考试时间","总分","考试类别","听力" ] cet = CET() res = cet.get_last_cet_score(zkzh,name) #s = "" #for i in res.keys(): # s = "%s%s\n%s\n"%(s,i,res[i]) #return s return render.result_list(items,res)