def test():
    urp = urp_courses('2012081507','520134')
    if urp.login():
        urp.course_info()
    else:
        flash('passwd error!')
    return 'succeed'
示例#2
0
def test():
    urp = urp_courses('2012081507','520134')
    if urp.login():
        urp.course_info()
        flash('succeed!')
    else:
        flash('fail!')
    return render_template('succeed.html')
示例#3
0
def test():
    urp = urp_courses('2012081507', '520134')
    if urp.login():
        urp.course_info()
        flash('succeed!')
    else:
        flash('fail!')
    return render_template('succeed.html')