mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 13:50:20 +08:00
Merge pull request #2015 from guerler/fix_collection_001
Fix collection handling
This commit is contained in:
@@ -2152,6 +2152,8 @@ class DataCollectionToolParameter( BaseDataToolParameter ):
|
||||
raise ValueError( "History does not include a dataset collection of the correct type or containing the correct types of datasets" )
|
||||
if value in [None, "None"]:
|
||||
return None
|
||||
if isinstance( value, dict ) and 'values' in value:
|
||||
value = self.to_python( value, trans.app )
|
||||
if isinstance( value, string_types ) and value.find( "," ) > 0:
|
||||
value = [ int( value_part ) for value_part in value.split( "," ) ]
|
||||
elif isinstance( value, trans.app.model.HistoryDatasetCollectionAssociation ):
|
||||
|
||||
Reference in New Issue
Block a user