shashi shekhar wrote:
Hi All,
<a href="${h.url_for( controller='dataset', action='display', dataset_id=dataset_id, to_ext=data.ext )}" title="Save" class="icon-button disk tooltip"></a>
Can u tell me how it works?.when u click on save button, it will save a file as output file name appended with extension example Galaxy122-[fasta-compute-sequence-length].fasta . i want to remove the first word "Galaxy". how it's possible ?
Hi Shashi, The filename is set on line 373 of galaxy-dist/lib/galaxy/web/controllers/dataset.py: 367 else: 368 trans.response.headers['Content-Length'] = int( os.stat( data.file_name ).st_size ) 369 if not to_ext: 370 to_ext = data.extension 371 valid_chars = '.,^_-()[]0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' 372 fname = ''.join(c in valid_chars and c or '_' for c in data.name)[0:150] 373 trans.response.headers["Content-Disposition"] = "attachment; filename=Galaxy%s-[%s].%s" % (data.hid, fname, to_ext) 374 return open( data.file_name ) --nate
Regards shashi shekhar
___________________________________________________________ Please keep all replies on the list by using "reply all" in your mail client. To manage your subscriptions to this and other Galaxy lists, please use the interface at: