Beispiel #1
0
def add_entry():
    userId = request.form['id']
    userPasswd = request.form['passwd']

    for member in Member.all():
        if userId == member.getId():
            return "failed"

    member = Member(userId=userId, userPasswd=userPasswd)
    member.put()
    return "OK"
Beispiel #2
0
def show_entries():
    members = Member.all()
    return render_template("practice.html", members=members)