Merge pull request #2015 from guerler/fix_collection_001

Fix collection handling
This commit is contained in:
Dannon Baker
2016-03-25 17:26:39 -04:00
+2
View File
@@ -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 ):