The horizon.utils.csvbase Module¶
-
class
horizon.utils.csvbase.BaseCsvResponse(request, template, context, content_type, **kwargs)[source] Bases:
horizon.utils.csvbase.CsvDataMixin,django.http.response.HttpResponseBase CSV response class. Provides handling of CSV data.
-
get_row_data()[source]
-
-
class
horizon.utils.csvbase.BaseCsvStreamingResponse(request, template, context, content_type, **kwargs)[source] Bases:
horizon.utils.csvbase.CsvDataMixin,django.http.response.StreamingHttpResponseBase CSV Streaming class. Provides streaming response for CSV data.
-
buffer()[source]
-
get_content()[source]
-
get_row_data()[source]
-
-
class
horizon.utils.csvbase.CsvDataMixin[source] Bases:
objectCSV data Mixin - provides handling for CSV data.
-
columns¶ A list of CSV column definitions. If omitted - no column titles will be shown in the result file. Optional.
-
encode(value)[source]
-
write_csv_header()[source]
-
write_csv_row(args)[source]
-