Ejemplo n.º 1
0
def quitCourse():
	if (not isLogin()):
		return CourseService.getNotLoginResult()
	
	courseId = request.form['courseId']
	username = session['username']
	return CourseService.quitCourse(username, int(courseId))
Ejemplo 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))
Ejemplo 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))
Ejemplo n.º 4
0
def iGetCourseInfo():
    if (not isLogin()):
        return NetCourse.iGetNotLoginResult()

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

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