def POST_AUTH(self): data = self.user_manager.session_lti_info() if data is None: raise self.app.forbidden(message=_("No LTI data available.")) (courseid, taskid) = data['task'] return BaseTaskPage(self).POST(courseid, taskid, True)
def POST_AUTH(self): data = self.user_manager.session_lti_info() if data is None: raise web.notfound() (courseid, taskid) = data['task'] return BaseTaskPage(self).POST(courseid, taskid, True)
def GET_AUTH(self): data = self.user_manager.session_lti_info() if data is None: raise Forbidden(description=_("No LTI data available.")) (courseid, taskid) = data['task'] return BaseTaskPage(self).GET(courseid, taskid, True)
def POST(self, testCourse, testTask): return BaseTaskPage(self).POST(testCourse, testTask, False)