def InitUser():
 result = AppUser.query((AppUser.user == users.get_current_user())).fetch()
 if result:
  app_user = result[0]
 else:
  app_user = AppUser(user=users.get_current_user(), email=users.get_current_user().email())
  app_user.put()
 return app_user

def InitUser ( ) : result = AppUser . query ( ( AppUser . user == users . get_current_user ( ) ) ) . fetch ( ) if result : app_user = result [ 0 ] else : app_user = AppUser ( user = users . get_current_user ( ) , email = users . get_current_user ( ) . email ( ) ) app_user . put ( ) return app_user
initialize application user .