def instance_uri(request, resource_name, **params):
 return strip_uri_prefix(request.route_path(('%s-record' % resource_name), **params))

def instance_uri ( request , resource_name , ** params ) : return strip_uri_prefix ( request . route_path ( ( '%s-record' % resource_name ) , ** params ) )
return the uri for the given resource .