backout -r 10808

This commit is contained in:
Ross Lazarus
2013-10-08 10:55:24 +11:00
parent 4caf74eaa6
commit 8c4f96ed81
3 changed files with 17 additions and 9 deletions
+17 -7
View File
@@ -1,5 +1,6 @@
import os
import galaxy.tools
import re
from galaxy.exceptions import ObjectInvalid
from galaxy.model import LibraryDatasetDatasetAssociation
@@ -191,14 +192,20 @@ class DefaultToolAction( object ):
data = data.to_history_dataset_association( None )
inp_data[name] = data
else: # HDA
if data.hid:
input_names.append( 'data %s' % data.hid )
# else: # HDA
# if data.hid:
# input_names.append( 'data %s' % data.hid )
input_ext = data.ext
if data.dbkey not in [None, '?']:
input_dbkey = data.dbkey
data_name_sane = re.sub('[^a-zA-Z0-9_]+', '', data.name)
if trans.app.config.use_data_id_on_string:
# we want names in our on_strings not numbers
input_names.append(data_name_sane)
else:
if data.hid:
input_names.append('data %s' % data.hid)
# Collect chromInfo dataset and add as parameters to incoming
db_datasets = {}
db_dataset = trans.db_dataset_for( input_dbkey )
@@ -232,11 +239,14 @@ class DefaultToolAction( object ):
if len( input_names ) == 1:
on_text = input_names[0]
elif len( input_names ) == 2:
on_text = '%s and %s' % tuple(input_names[0:2])
#on_text = '%s and %s' % tuple(input_names[0:2])
on_text = '%s_%s' % tuple(input_names[0:2])
elif len( input_names ) == 3:
on_text = '%s, %s, and %s' % tuple(input_names[0:3])
#on_text = '%s, %s, and %s' % tuple(input_names[0:3])
on_text = '%s_%s_%s' % tuple(input_names[0:3])
elif len( input_names ) > 3:
on_text = '%s, %s, and others' % tuple(input_names[0:2])
#on_text = '%s, %s, and others' % tuple(input_names[0:2])
on_text = '%s_%s_and_others' % tuple(input_names[0:2])
else:
on_text = ""
# Add the dbkey to the incoming parameters
-1
View File
@@ -454,5 +454,4 @@ def main():
return 1
if __name__ == "__main__":
print '\n\n\n\n#### SGE_ROOT=', os.environ.get('SGE_ROOT','##### no SGE_ROOT!'),'\n\n\n'
sys.exit( main() )
-1
View File
@@ -1,7 +1,6 @@
<?xml version="1.0"?>
<toolbox>
<section name="Get Data" id="getext">
<tool file="rlGAT/rlGAT.xml"/>
<tool file="data_source/upload.xml"/>
<tool file="data_source/ucsc_tablebrowser.xml" />
<tool file="data_source/ucsc_tablebrowser_test.xml" />