tobhv
tobhv
gitlab supports viewing, editing draw.io files. seems to work offline from draw.io some links: - some code in master: https://gitlab.com/gitlab-org/gitlab/-/tree/master/app/assets/javascripts/drawio?ref_type=heads - and merge request that looks like mvp: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/86206/diffs#7981eac67e1980a41d95e5bfc2ccea7350ce53ae i...
hi. from what i found it seems configurable in tablib: ``` import tablib dataset = tablib.Dataset() dataset.append(['Column1', 'Column2', 'Column3']) dataset.append(['bla', 'bla2', 'bla3']) with open('outputsemicolon.csv', 'w', newline='') as f: f.write(dataset.export('csv', delimiter=';'))...
yes. simple example below: ``` from django.conf import settings from import_export.formats.base_formats import TextFormat class SCSV(TextFormat): TABLIB_MODULE = "tablib.formats._csv" CONTENT_TYPE = "text/csv" def export_data(self, dataset, **kwargs): return dataset.export('csv', delimiter=';') ``` in...
and with working imports: ``` import tablib from django.conf import settings from import_export.formats.base_formats import TextFormat class SCSV(TextFormat): TABLIB_MODULE = "tablib.formats._csv" CONTENT_TYPE = "text/csv" def create_dataset(self, in_stream, **kwargs): dataset = super().create_dataset(in_stream,...
thx a bunch for pointing to the documentation. i can confirm that works. however some notes.: 1) fields that are part of a foreign key widget do not get string...
Well, as (also) documented: string coercion can be enforced using dehydrate. ``` def dehydrate_sensor_last(self, measurement): try: last_measurement = measurement.sensor.last_measurement if last_measurement: return str(last_measurement) except ObjectDoesNotExist: return ``` so. in case...