def quitCourse(): if (not isLogin()): return CourseService.getNotLoginResult() courseId = request.form['courseId'] username = session['username'] return CourseService.quitCourse(username, int(courseId))
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))
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))
def iGetCourseInfo(): if (not isLogin()): return NetCourse.iGetNotLoginResult() return NetCourse.iGetSelectCourseInfo(session['username'])
def getCourseInfo(): if (not isLogin()): return CourseService.getNotLoginResult() return CourseService.getCourseInfo(session['username'])
def logout(): if (isLogin()): session['isLogin'] = True session['username'] = None
def wsGetCourseInfo(): if (not isLogin()): return CourseWebService.wsGetNotLoginResult() return CourseWebService.wsGetSelectCourseInfo(session['username'])