def _send_inventories(response, resource_provider, inventories):
 response.status = 200
 response.body = encodeutils.to_utf8(jsonutils.dumps(_serialize_inventories(inventories, resource_provider.generation)))
 response.content_type = 'application/json'
 return response

def _send_inventories ( response , resource_provider , inventories ) : response . status = 200 response . body = encodeutils . to_utf8 ( jsonutils . dumps ( _serialize_inventories ( inventories , resource_provider . generation ) ) ) response . content_type = 'application/json' return response
send a json representation of a list of inventories .