Exemple #1
0
def confirm():
    l = []
    members = utils.userGroupMembers(useremail)
    for member in members:
        l.append(str("q1"+member+":")+str(request.form["q1"+member]))
        l.append(str("q2"+member+":")+str(request.form["q2"+member]))
        l.append(str("q3"+member+":")+str(request.form["q3"+member]))
        l.append(str("q4"+member+":")+str(request.form["q4"+member]))
        l.append(str("q5"+member+":")+str(request.form["q5"+member]))

    print l
    utils.save_response(useremail,l)
    ratings = utils.get_ownratings(useremail)

    return render_template("confirm.html", ratings = ratings)
Exemple #2
0
def rate(email, name):
    members = utils.userGroupMembers(email)
    ratings = utils.get_response(email)
    return render_template("rate.html", name = name, members = members, ratings=ratings)
    if (request.form(buttonvalue == "Submit")):
        return confirm()