commit/galaxy-central: jmchilton: Small tweak to DataCollectionToolParameter interface for uniformity with DataToolParameter.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/37cf9cd764fa/ Changeset: 37cf9cd764fa User: jmchilton Date: 2014-12-03 21:34:00+00:00 Summary: Small tweak to DataCollectionToolParameter interface for uniformity with DataToolParameter. Affected #: 1 file diff -r 25d6c1903eceb8a2ed47459d1fefcfaed57e8995 -r 37cf9cd764fa3a306e5a74ec05ddfe4046060ae7 lib/galaxy/tools/parameters/basic.py --- a/lib/galaxy/tools/parameters/basic.py +++ b/lib/galaxy/tools/parameters/basic.py @@ -2222,6 +2222,10 @@ 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 + # would really like to not need to handle lists in here but + # doing it for uniformity with DataToolParameters for now. + if isinstance( value, list ): + value = value[ 0 ] if isinstance( value, str ) and value.find( "," ) > 0: value = [ int( value_part ) for value_part in value.split( "," ) ] elif isinstance( value, trans.app.model.HistoryDatasetCollectionAssociation ): 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