def LoginServiceRedirect(dest_url, endpoint, ah_url, outfile):
 redirect_url = ('%s?%s=%s' % (endpoint, CONTINUE_PARAM, urllib.quote(('%s?%s=%s' % (ah_url, CONTINUE_PARAM, dest_url)))))
 outfile.write('Status: 302 Redirecting to login service URL\r\n')
 outfile.write(('Location: %s\r\n' % redirect_url))
 outfile.write('\r\n')

def LoginServiceRedirect ( dest_url , endpoint , ah_url , outfile ) : redirect_url = ( '%s?%s=%s' % ( endpoint , CONTINUE_PARAM , urllib . quote ( ( '%s?%s=%s' % ( ah_url , CONTINUE_PARAM , dest_url ) ) ) ) ) outfile . write ( 'Status: 302 Redirecting to login service URL\r\n' ) outfile . write ( ( 'Location: %s\r\n' % redirect_url ) ) outfile . write ( '\r\n' )
sends the requester to a redirected path .