how to stop extra html file inserted into download zip
Hi, I have a tool that works well. However, when I download the results, the results are zipped up but included into the zip file is the *.html file (with the same name as the tool output) do you know how I can stop this from being zipped up? Thanks Neil
Sorry I should have provided more detail. After I have executed my tool, I write the html into the dataset_'id'.dat file listing all the output files which I store in extra_files_path (named as dataset_id_files in the database). Thus when I do a download I only want the files stored in "dataset_id_files" downloaded I don't want/need dataset_'id'.dat, too. Can I stop dataset_id.dat from being included in the zip file? I was thinking I may need to change "act_on_multiple_datasets" in ~./lib/galaxy/webapps/galaxy/controllers/library_common.py . However, it doesn't seem that this function is called when you click on the download icon on the "history" panel. Thanks Neil From: Burdett, Neil (CCI, Herston - RBWH) Sent: Friday, 10 January 2014 1:46 PM To: galaxy-dev@lists.bx.psu.edu Subject: how to stop extra html file inserted into download zip Hi, I have a tool that works well. However, when I download the results, the results are zipped up but included into the zip file is the *.html file (with the same name as the tool output) do you know how I can stop this from being zipped up? Thanks Neil
For those following this thread. I, finally, managed to stop zipping up the html file by commenting out the "try" block (around line 260) in ~/lib/galaxy/datatypes/data.py Thanks Neil From: Burdett, Neil (CCI, Herston - RBWH) Sent: Friday, 10 January 2014 3:27 PM To: galaxy-dev@lists.bx.psu.edu Subject: RE: how to stop extra html file inserted into download zip Sorry I should have provided more detail. After I have executed my tool, I write the html into the dataset_'id'.dat file listing all the output files which I store in extra_files_path (named as dataset_id_files in the database). Thus when I do a download I only want the files stored in "dataset_id_files" downloaded I don't want/need dataset_'id'.dat, too. Can I stop dataset_id.dat from being included in the zip file? I was thinking I may need to change "act_on_multiple_datasets" in ~./lib/galaxy/webapps/galaxy/controllers/library_common.py . However, it doesn't seem that this function is called when you click on the download icon on the "history" panel. Thanks Neil From: Burdett, Neil (CCI, Herston - RBWH) Sent: Friday, 10 January 2014 1:46 PM To: galaxy-dev@lists.bx.psu.edu<mailto:galaxy-dev@lists.bx.psu.edu> Subject: how to stop extra html file inserted into download zip Hi, I have a tool that works well. However, when I download the results, the results are zipped up but included into the zip file is the *.html file (with the same name as the tool output) do you know how I can stop this from being zipped up? Thanks Neil
On Fri, Jan 10, 2014 at 3:45 AM, <Neil.Burdett@csiro.au> wrote:
Hi, I have a tool that works well. However, when I download the results, the results are zipped up but included into the zip file is the *.html file (with the same name as the tool output) do you know how I can stop this from being zipped up?
Thanks
Neil
Hi Neil, Are you defining a custom composite datatype? If so, you can now override this behaviour in the Python class defining the datatype. https://bitbucket.org/galaxy/galaxy-central/commits/44acfec11d87f2efc38bccb2... http://comments.gmane.org/gmane.science.biology.galaxy.devel/13419 Peter
participants (2)
-
Neil.Burdett@csiro.au
-
Peter Cock