def register(cls, name, password, email): pw_hash = make_pw_hash(name, password) return User( parent=users_key(), username=name, password=pw_hash, email=email )
def register(cls, name, password, email): pw_hash = make_pw_hash(name, password) return User(parent=users_key(), username=name, password=pw_hash, email=email)
def by_id(cls, uid): return User.get_by_id(uid, parent=users_key())