コード例 #1
0
 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
     )
コード例 #2
0
 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)
コード例 #3
0
 def by_id(cls, uid):
     return User.get_by_id(uid, parent=users_key())
コード例 #4
0
 def by_id(cls, uid):
     return User.get_by_id(uid, parent=users_key())