def get_auth_params_from_request(request):
 return (request.user.username, request.user.token.id, request.user.tenant_id, base.url_for(request, 'compute'), base.url_for(request, 'identity'))

def get_auth_params_from_request ( request ) : return ( request . user . username , request . user . token . id , request . user . tenant_id , base . url_for ( request , 'compute' ) , base . url_for ( request , 'identity' ) )
extracts the properties from the request object needed by the novaclient call below .