@require_admin_context
def get_volume_summary_all(context):
 query = model_query(context, func.count(models.Volume.id), func.sum(models.Volume.size), read_deleted='no')
 if (query is None):
  return []
 result = query.first()
 return ((result[0] or 0), (result[1] or 0))

@ require_admin_context def get_volume_summary_all ( context ) : query = model_query ( context , func . count ( models . Volume . id ) , func . sum ( models . Volume . size ) , read_deleted = 'no' ) if ( query is None ) : return [ ] result = query . first ( ) return ( ( result [ 0 ] or 0 ) , ( result [ 1 ] or 0 ) )
get all volume summary .