def provider_respond(server, request, response, data):
 add_openid_simple_registration(request, response, data)
 add_openid_attribute_exchange(request, response, data)
 webresponse = server.encodeResponse(response)
 http_response = HttpResponse(webresponse.body)
 http_response.status_code = webresponse.code
 for (key, val) in webresponse.headers.iteritems():
  http_response[key] = val
 return http_response

def provider_respond ( server , request , response , data ) : add_openid_simple_registration ( request , response , data ) add_openid_attribute_exchange ( request , response , data ) webresponse = server . encodeResponse ( response ) http_response = HttpResponse ( webresponse . body ) http_response . status_code = webresponse . code for ( key , val ) in webresponse . headers . iteritems ( ) : http_response [ key ] = val return http_response
respond to an openid request .