Exemplo n.º 1
0
 def POST(self):
     form = xh_form()
     title = '往年四六级成绩'
     if not form.validates():
         return render.normal_form(title=title, form=form)
     else:
         xh = form.d.xh
     table = get_old_cet(xh)
     return render.old_result(cet_table=table)
Exemplo n.º 2
0
 def POST(self):
     form = xh_form()
     title='往年四六级成绩'
     if not form.validates():
         return render.normal_form(title=title,form=form)
     else:
         xh = form.d.xh
     table=get_old_cet(xh)
     return render.old_result(cet_table=table)
Exemplo n.º 3
0
    def POST(self):
        form = xh_form()
        if not form.validates():
            return render.score(form=form)
        else:
            xh = form.d.xh

        from addons import get_gpa, get_score

        gpa = get_gpa(xh)
        score = get_score(xh)

        return render.old_result(score_table=score, jidian=gpa['ave_score'])
Exemplo n.º 4
0
    def POST(self):
        form = xh_form()
        if not form.validates():
            return render.score(form=form)
        else:
            xh = form.d.xh

        from addons import get_gpa, get_score

        gpa=get_gpa(xh)
        score=get_score(xh)

        return render.old_result(score_table=score, jidian=gpa['ave_score'])
Exemplo n.º 5
0
 def GET(self):
     form = xh_form()
     return render.score(form=form)
Exemplo n.º 6
0
 def GET(self):
     form = xh_form()
     return render.score(form=form)