def headers_to_account_info(headers, status_int=HTTP_OK):
 (headers, meta, sysmeta) = _prep_headers_to_info(headers, 'account')
 account_info = {'status': status_int, 'container_count': headers.get('x-account-container-count'), 'total_object_count': headers.get('x-account-object-count'), 'bytes': headers.get('x-account-bytes-used'), 'meta': meta, 'sysmeta': sysmeta}
 if is_success(status_int):
  account_info['account_really_exists'] = (not config_true_value(headers.get('x-backend-fake-account-listing')))
 return account_info

def headers_to_account_info ( headers , status_int = HTTP_OK ) : ( headers , meta , sysmeta ) = _prep_headers_to_info ( headers , 'account' ) account_info = { 'status' : status_int , 'container_count' : headers . get ( 'x-account-container-count' ) , 'total_object_count' : headers . get ( 'x-account-object-count' ) , 'bytes' : headers . get ( 'x-account-bytes-used' ) , 'meta' : meta , 'sysmeta' : sysmeta } if is_success ( status_int ) : account_info [ 'account_really_exists' ] = ( not config_true_value ( headers . get ( 'x-backend-fake-account-listing' ) ) ) return account_info
construct a cacheable dict of account info based on response headers .