@require_context
def volume_get_all_by_project(context, project_id, marker, limit, sort_keys=None, sort_dirs=None, filters=None, offset=None):
 session = get_session()
 with session.begin():
  authorize_project_context(context, project_id)
  filters = (filters.copy() if filters else {})
  filters['project_id'] = project_id
  query = _generate_paginate_query(context, session, marker, limit, sort_keys, sort_dirs, filters, offset)
  if (query is None):
   return []
  return query.all()

@ require_context def volume_get_all_by_project ( context , project_id , marker , limit , sort_keys = None , sort_dirs = None , filters = None , offset = None ) : session = get_session ( ) with session . begin ( ) : authorize_project_context ( context , project_id ) filters = ( filters . copy ( ) if filters else { } ) filters [ 'project_id' ] = project_id query = _generate_paginate_query ( context , session , marker , limit , sort_keys , sort_dirs , filters , offset ) if ( query is None ) : return [ ] return query . all ( )
get all volumes belonging to a project .