def render_openid_request(request, openid_request, return_to, trust_root=None):
 if (trust_root is None):
  trust_root = getattr(settings, 'OPENID_TRUST_ROOT', request.build_absolute_uri('/'))
 if openid_request.shouldSendRedirect():
  redirect_url = openid_request.redirectURL(trust_root, return_to)
  return HttpResponseRedirect(redirect_url)
 else:
  form_html = openid_request.htmlMarkup(trust_root, return_to, form_tag_attrs={'id': 'openid_message'})
  return HttpResponse(form_html, content_type='text/html;charset=UTF-8')

def render_openid_request ( request , openid_request , return_to , trust_root = None ) : if ( trust_root is None ) : trust_root = getattr ( settings , 'OPENID_TRUST_ROOT' , request . build_absolute_uri ( '/' ) ) if openid_request . shouldSendRedirect ( ) : redirect_url = openid_request . redirectURL ( trust_root , return_to ) return HttpResponseRedirect ( redirect_url ) else : form_html = openid_request . htmlMarkup ( trust_root , return_to , form_tag_attrs = { 'id' : 'openid_message' } ) return HttpResponse ( form_html , content_type = 'text/html;charset=UTF-8' )
render an openid authentication request .