pylti.flask.lti.post_grade

Here are the examples of the python api pylti.flask.lti.post_grade taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

Example 1

Project: pylti
Source File: test_flask_app.py
View license
@app.route("/post_grade/<float:grade>")
@lti_flask(error=error, request='session', app=app)
def post_grade(grade, lti):
    """
    Access route with 'session' request.

    :param lti: `lti` object
    :return: string "grade={}"
    """
    ret = lti.post_grade(grade)
    return "grade={}".format(ret)

Example 2

Project: pylti
Source File: test_flask_app.py
View license
@app.route("/post_grade/<float:grade>")
@lti_flask(error=error, request='session', app=app)
def post_grade(grade, lti):
    """
    Access route with 'session' request.

    :param lti: `lti` object
    :return: string "grade={}"
    """
    ret = lti.post_grade(grade)
    return "grade={}".format(ret)