def _AuthFunction(host, email, passin, raw_input_fn, password_input_fn):
 if (not email):
  print ('Please enter login credentials for %s' % host)
  email = raw_input_fn('Email: ')
 if email:
  password_prompt = ('Password for %s: ' % email)
  if passin:
   password = raw_input_fn(password_prompt)
  else:
   password = password_input_fn(password_prompt)
 else:
  password = None
 return (email, password)

def _AuthFunction ( host , email , passin , raw_input_fn , password_input_fn ) : if ( not email ) : print ( 'Please enter login credentials for %s' % host ) email = raw_input_fn ( 'Email: ' ) if email : password_prompt = ( 'Password for %s: ' % email ) if passin : password = raw_input_fn ( password_prompt ) else : password = password_input_fn ( password_prompt ) else : password = None return ( email , password )
internal method shared between requestmanager and _getremoteappid .