def redirect_by_default():
 choices = [('Easy', 'Allow both HTTP and HTTPS access to these sites'), ('Secure', 'Make all requests redirect to secure HTTPS access')]
 (code, selection) = util(interfaces.IDisplay).menu('Please choose whether HTTPS access is required or optional.', choices, default=0, cli_flag='--redirect / --no-redirect', force_interactive=True)
 if (code != display_util.OK):
  return False
 return (selection == 1)

def redirect_by_default ( ) : choices = [ ( 'Easy' , 'Allow both HTTP and HTTPS access to these sites' ) , ( 'Secure' , 'Make all requests redirect to secure HTTPS access' ) ] ( code , selection ) = util ( interfaces . IDisplay ) . menu ( 'Please choose whether HTTPS access is required or optional.' , choices , default = 0 , cli_flag = '--redirect / --no-redirect' , force_interactive = True ) if ( code != display_util . OK ) : return False return ( selection == 1 )
determines whether the user would like to redirect to https .