Hi all,
DownloadResult seems to be working in the case of:
def download_stuff(self, params, **kwargs):
return DownloadResult(file_content='Content of file 1', file_name="my_file_1.txt")
But not in the case of:
def download_stuff(self, params, **kwargs):
return DownloadResult(zipped_files={'my_file_1.txt': 'Content of file 1', 'my_file_2.txt': 'Content of file 2'}, file_name="my_file.zip")
Could you explain why? I do receive the following error in the latter case:
Traceback (most recent call last):
File "viktor_connector\connector.pyx", line 295, in connector.Job.execute
File "viktor\core.pyx", line 1918, in viktor.core._handle_job
File "viktor\core.pyx", line 1870, in viktor.core._handle_job._handle_button
File "viktor\result.pyx", line 109, in viktor.result.DownloadResult._serialize
File "viktor\result.pyx", line 116, in viktor.result.DownloadResult._serialize
NotImplementedError
Thanks.