commit/galaxy-central: martenson: removed manual setting of ‘200’ response code because it causes httpexception module errors
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/5563247528c8/ Changeset: 5563247528c8 User: martenson Date: 2014-01-02 17:25:02 Summary: removed manual setting of ‘200’ response code because it causes httpexception module errors Affected #: 1 file diff -r 2e54fd51118797935c299c5f34b37ac48f780900 -r 5563247528c8b1ac5f3c837bdd492c3b49c4b5e7 lib/galaxy/webapps/galaxy/api/lda_datasets.py --- a/lib/galaxy/webapps/galaxy/api/lda_datasets.py +++ b/lib/galaxy/webapps/galaxy/api/lda_datasets.py @@ -57,7 +57,6 @@ rval['id'] = trans.security.encode_id(rval['id']); rval['ldda_id'] = trans.security.encode_id(rval['ldda_id']); rval['folder_id'] = 'f' + trans.security.encode_id(rval['folder_id']) - trans.response.status = 200 return rval @web.expose @@ -225,14 +224,12 @@ archive = util.streamball.ZipBall(tmpf, tmpd) archive.wsgi_status = trans.response.wsgi_status() archive.wsgi_headeritems = trans.response.wsgi_headeritems() - trans.response.status = 200 return archive.stream else: trans.response.set_content_type( "application/x-tar" ) trans.response.headers[ "Content-Disposition" ] = 'attachment; filename="%s.%s"' % (fname,outext) archive.wsgi_status = trans.response.wsgi_status() archive.wsgi_headeritems = trans.response.wsgi_headeritems() - trans.response.status = 200 return archive.stream elif format == 'uncompressed': if len(lddas) != 1: @@ -248,7 +245,6 @@ fname = ''.join( c in valid_chars and c or '_' for c in fname )[ 0:150 ] trans.response.headers[ "Content-Disposition" ] = 'attachment; filename="%s"' % fname try: - trans.response.status = 200 return open( single_dataset.file_name ) except: trans.response.status = 500 Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org