commit/galaxy-central: richard_burhans: When dynamically generating SelectToolParameter options, if the data_meta filter is used and no 'from' source has been specified, set defaults for columns and largest_index if they have not already been set.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/8614ab445c99/ Changeset: 8614ab445c99 User: richard_burhans Date: 2013-04-15 19:36:07 Summary: When dynamically generating SelectToolParameter options, if the data_meta filter is used and no 'from' source has been specified, set defaults for columns and largest_index if they have not already been set. Affected #: 1 file diff -r 5bd15f07491607c9774bc3b9b5db9a4aea25768b -r 8614ab445c993ebad66089af8b4e263acace5d39 lib/galaxy/tools/parameters/dynamic_options.py --- a/lib/galaxy/tools/parameters/dynamic_options.py +++ b/lib/galaxy/tools/parameters/dynamic_options.py @@ -129,6 +129,13 @@ rval.append( fields ) return rval else: + if not self.dynamic_option.columns: + self.dynamic_option.columns = { + "name" : 0, + "value" : 1, + "selected" : 2 + } + self.dynamic_option.largest_index = 2 if not isinstance( meta_value, list ): meta_value = [meta_value] for value in meta_value: 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