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'))
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')