commit/galaxy-central: dan: Fix for rerun of unvalidated parameters for multiple selects.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/52f8e109315a/ Changeset: 52f8e109315a Branch: next-stable User: dan Date: 2014-04-14 22:29:46 Summary: Fix for rerun of unvalidated parameters for multiple selects. Affected #: 1 file diff -r 8d4ceccae2367e06bc05f93bfdc51119a962307b -r 52f8e109315ae84a36999586d333e1758511477f lib/galaxy/webapps/galaxy/controllers/tool_runner.py --- a/lib/galaxy/webapps/galaxy/controllers/tool_runner.py +++ b/lib/galaxy/webapps/galaxy/controllers/tool_runner.py @@ -192,7 +192,12 @@ #This needs to be done recursively through grouping parameters def rerun_callback( input, value, prefixed_name, prefixed_label ): if isinstance( value, UnvalidatedValue ): - return str( value ) + try: + return input.to_html_value( value.value, trans.app ) + except Exception, e: + # Need to determine when (if ever) the to_html_value call could fail. + log.debug( "Failed to use input.to_html_value to determine value of unvalidated parameter, defaulting to string: %s" % ( e ) ) + return str( value ) if isinstance( input, DataToolParameter ): if isinstance(value,list): values = [] 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