def _get_assets_for_page(request, course_key, options):
 current_page = options['current_page']
 page_size = options['page_size']
 sort = options['sort']
 filter_params = (options['filter_params'] if options['filter_params'] else None)
 start = (current_page * page_size)
 return contentstore().get_all_content_for_course(course_key, start=start, maxresults=page_size, sort=sort, filter_params=filter_params)

def _get_assets_for_page ( request , course_key , options ) : current_page = options [ 'current_page' ] page_size = options [ 'page_size' ] sort = options [ 'sort' ] filter_params = ( options [ 'filter_params' ] if options [ 'filter_params' ] else None ) start = ( current_page * page_size ) return contentstore ( ) . get_all_content_for_course ( course_key , start = start , maxresults = page_size , sort = sort , filter_params = filter_params )
returns the list of assets for the specified page and page size .