예제 #1
0
파일: views.py 프로젝트: adlnet/xci
def view_assertions():
    uri = request.form.get('uri', None)
    name = current_user.id

    p = performance.evaluate(uri, name)
    if p:
        models.createAssertion(p, uri)

    return redirect(url_for('me'))
예제 #2
0
def view_assertions():
    uri = request.form.get('uri', None)
    name = current_user.id

    p = performance.evaluate(uri, name)
    if p:
        models.createAssertion(p, uri)

    return redirect(url_for('me'))
예제 #3
0
파일: views.py 프로젝트: adlnet/xci
def test():
    uri = "http://12.109.40.34/performance-framework/xapi/tetris"
    userid = "tom"
    # seed system with perfwk
    # objid = models.getPerformanceFramework(uri)
    competency.parseComp(uri)
    # reg user with perfwk
    models.addPerFwkToUserProfile(uri, userid)

    #### now do the performance stuff
    p = performance.evaluate(uri, userid)
    return Response(json.dumps(p), mimetype='application/json')
예제 #4
0
def test():
    uri = "http://12.109.40.34/performance-framework/xapi/tetris"
    userid = "tom"
    # seed system with perfwk
    # objid = models.getPerformanceFramework(uri)
    competency.parseComp(uri)
    # reg user with perfwk
    models.addPerFwkToUserProfile(uri, userid)

    #### now do the performance stuff
    p = performance.evaluate(uri, userid)
    return Response(json.dumps(p), mimetype='application/json')