def create_appscale_user(password, uaserver):
 does_user_exist = uaserver.does_user_exist(hermes_constants.USER_EMAIL, appscale_info.get_secret())
 if (does_user_exist == 'true'):
  logging.debug('User {0} already exists, so not creating it again.'.format(hermes_constants.USER_EMAIL))
  return True
 elif (uaserver.commit_new_user(hermes_constants.USER_EMAIL, password, hermes_constants.ACCOUNT_TYPE, appscale_info.get_secret()) == 'true'):
  return True
 else:
  logging.error('Error while creating an Appscale user.')
  return False

def create_appscale_user ( password , uaserver ) : does_user_exist = uaserver . does_user_exist ( hermes_constants . USER_EMAIL , appscale_info . get_secret ( ) ) if ( does_user_exist == 'true' ) : logging . debug ( 'User {0} already exists, so not creating it again.' . format ( hermes_constants . USER_EMAIL ) ) return True elif ( uaserver . commit_new_user ( hermes_constants . USER_EMAIL , password , hermes_constants . ACCOUNT_TYPE , appscale_info . get_secret ( ) ) == 'true' ) : return True else : logging . error ( 'Error while creating an Appscale user.' ) return False
creates the user account with the email address and password provided .