mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #9507 from blankenberg/geda-igv
[20.01] fix for python3 and GEDA, was getting "Connection closed at byte 0"
This commit is contained in:
@@ -70,10 +70,10 @@
|
||||
</jnlp>
|
||||
]]>
|
||||
</param>
|
||||
<param type="data" name="fai_file" dataset="fasta_file" url="galaxy_${DATASET_HASH}.fasta.fai" format="fai" />
|
||||
<param type="data" name="fai_file" dataset="fasta_file" url="galaxy_${DATASET_HASH}.${fasta_file.ext}.fai" format="fai" />
|
||||
<param type="template" name="redirect_url" strip="True" >
|
||||
#if $site_id.startswith( 'local_' )
|
||||
${site_link}?genome=${fasta_file.qp}&merge=true&name=name=${qp( ( $fasta_file.name or $DATASET_HASH ).replace( ',', ';' ) )}
|
||||
${site_link}?genome=${fasta_file.qp}&merge=true&name=${qp( ( $fasta_file.name or $DATASET_HASH ).replace( ',', ';' ) )}
|
||||
#elif $site_id.startswith( 'web_link_' ):
|
||||
${site_link}?sessionURL=${fasta_file.qp}&genome=${fasta_file.qp}&merge=true&name=${qp( ( $fasta_file.name or $DATASET_HASH ).replace( ',', ';' ) )}
|
||||
#else:
|
||||
|
||||
@@ -701,7 +701,7 @@ class DatasetInterface(BaseUIController, UsesAnnotations, UsesItemRatings, UsesE
|
||||
else:
|
||||
file_name = value.file_name
|
||||
content_length = os.path.getsize(file_name)
|
||||
rval = open(file_name)
|
||||
rval = open(file_name, 'rb')
|
||||
except OSError as e:
|
||||
log.debug("Unable to access requested file in display application: %s", e)
|
||||
return paste.httpexceptions.HTTPNotFound("This file is no longer available.")
|
||||
|
||||
Reference in New Issue
Block a user