Beispiel #1
0
 def _get_csv_content_as_list_and_file_info(self, request):
     file_bytes, filename = self._get_file_bytes_and_name(request)
     return CsvSerializer.deserialize(file_bytes), filename, file_bytes
Beispiel #2
0
 def render(self, data, accepted_media_type=None, renderer_context=None):
     self._add_filename_to_response(renderer_context)
     return CsvSerializer.serialize(data, self.separator)
Beispiel #3
0
 def _get_csv_content_as_list_and_file_info(self, request):
     file_bytes, filename = self._get_file_bytes_and_name(request)
     return CsvSerializer.deserialize(file_bytes), filename, file_bytes
Beispiel #4
0
 def render(self, data, accepted_media_type=None, renderer_context=None):
     self._add_filename_to_response(renderer_context)
     return CsvSerializer.serialize(data, self.separator)