Example #1
0
    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)
Example #2
0
    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)
Example #3
0
    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)
Example #4
0
	def POST(self, testCourse, testTask):
	    return BaseTaskPage(self).POST(testCourse, testTask, False)