Esempio n. 1
0
 def get_user(self):
   from methods import NewUser
   user_name = self.request.path.split('/')[-1]	
   this_user = UserEntity.get_by_key_name(user_name)
   if not this_user:
     new_user = NewUser(user_name)
     this_user = new_user.create()
   return this_user
Esempio n. 2
0
 def __init__(self, user_name):
   self.user = UserEntity.get_by_key_name( user_name )