#NEWLINE# @ non_atomic_requests #NEWLINE# def collection( request , uuid , format , start = None , end = None ) : #NEWLINE# #INDENT# collection = get_object_or_404 ( Collection , uuid = uuid ) #NEWLINE# series = _collection_query ( request , collection , start , end ) #NEWLINE# if ( format == 'csv' ) : #NEWLINE# #INDENT# ( series , fields ) = csv_fields ( series ) #NEWLINE# return render_csv ( request , collection , series , ( [ 'date' , 'count' ] + list ( fields ) ) ) #NEWLINE# #UNINDENT# return render_json ( request , collection , series )