Esempio n. 1
0
def quitCourse():
	if (not isLogin()):
		return CourseService.getNotLoginResult()
	
	courseId = request.form['courseId']
	username = session['username']
	return CourseService.quitCourse(username, int(courseId))
Esempio n. 2
0
def iQuitCourse():
    if (not isLogin()):
        return NetCourse.iGetNotLoginResult()

    courseId = request.form['courseId']
    username = session['username']
    courseDept = request.form['courseDept']
    return NetCourse.iQuitCourse(username, int(courseId), int(courseDept))
Esempio n. 3
0
def wsQuitCourse():
    if (not isLogin()):
        return CourseWebService.wsGetNotLoginResult()

    courseId = request.form['courseId']
    username = session['username']
    courseDept = request.form['courseDept']
    return CourseWebService.wsQuitCourse(username, int(courseId),
                                         int(courseDept))
Esempio n. 4
0
def iGetCourseInfo():
    if (not isLogin()):
        return NetCourse.iGetNotLoginResult()

    return NetCourse.iGetSelectCourseInfo(session['username'])
Esempio n. 5
0
def getCourseInfo():
	if (not isLogin()):
		return CourseService.getNotLoginResult()
	
	return CourseService.getCourseInfo(session['username'])
Esempio n. 6
0
def logout():
	if (isLogin()):
		session['isLogin'] = True
		session['username'] = None
Esempio n. 7
0
def wsGetCourseInfo():
    if (not isLogin()):
        return CourseWebService.wsGetNotLoginResult()

    return CourseWebService.wsGetSelectCourseInfo(session['username'])