1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/1a465f5f15ec/ Changeset: 1a465f5f15ec User: guerler Date: 2014-11-07 15:39:19+00:00 Summary: ToolForm: Fix boolean handling Affected #: 2 files diff -r 0ac62bde7db38954702c0acba648cc8efa76a214 -r 1a465f5f15ec782c01926056c125fc4769d7fc06 lib/galaxy/web/form_builder.py --- a/lib/galaxy/web/form_builder.py +++ b/lib/galaxy/web/form_builder.py @@ -126,6 +126,9 @@ def is_checked( value ): if value == True: return True + if isinstance( value, basestring ): + if value.lower() in [ "yes", "true", "on" ]: + return True # This may look strange upon initial inspection, but see the comments in the get_html() method # above for clarification. Basically, if value is not True, then it will always be a list with # 2 input fields ( a checkbox and a hidden field ) if the checkbox is checked. If it is not diff -r 0ac62bde7db38954702c0acba648cc8efa76a214 -r 1a465f5f15ec782c01926056c125fc4769d7fc06 lib/galaxy/webapps/galaxy/api/tools.py --- a/lib/galaxy/webapps/galaxy/api/tools.py +++ b/lib/galaxy/webapps/galaxy/api/tools.py @@ -541,6 +541,11 @@ 'id' : trans.security.encode_id(v.id), 'src' : 'hda' } + elif isinstance(v, bool): + if v is True: + return 'true' + else: + return 'false' elif isinstance(v, basestring) or isnumber: return v else: @@ -591,7 +596,7 @@ # TODO: loop over all cases try: test_param = group_inputs[input_index]['test_param'] - test_param['value'] = group_state[test_param['name']] + test_param['value'] = convert(group_state[test_param['name']]) except Exception: pass i = group_state['__current_case__'] 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.