def resource_provider_url(environ, resource_provider):
 prefix = environ.get('SCRIPT_NAME', '')
 return ('%s/resource_providers/%s' % (prefix, resource_provider.uuid))

def resource_provider_url ( environ , resource_provider ) : prefix = environ . get ( 'SCRIPT_NAME' , '' ) return ( '%s/resource_providers/%s' % ( prefix , resource_provider . uuid ) )
produce the url for a resource provider .