def current_resource_name(request):
 service = current_service(request)
 resource_name = service.viewset.get_name(service.resource)
 return resource_name

def current_resource_name ( request ) : service = current_service ( request ) resource_name = service . viewset . get_name ( service . resource ) return resource_name
return the name used when the kinto .