mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
I need to keep a handle on the updated state of tool input parameters.
This commit is contained in:
@@ -172,6 +172,7 @@ class Tool:
|
||||
self.config_file = config_file
|
||||
self.tool_dir = os.path.dirname( config_file )
|
||||
self.app = app
|
||||
self.updated_params = {}
|
||||
# Parse XML element containing configuration
|
||||
self.parse( root )
|
||||
|
||||
@@ -453,6 +454,7 @@ class Tool:
|
||||
"""
|
||||
state = DefaultToolState()
|
||||
state.inputs = {}
|
||||
self.updated_params = {}
|
||||
self.fill_in_new_state( trans, self.inputs_by_page[ 0 ], state.inputs )
|
||||
return state
|
||||
|
||||
@@ -653,6 +655,7 @@ class Tool:
|
||||
if error:
|
||||
errors[ input.name ] = error
|
||||
state[input.name] = value
|
||||
self.updated_params[input.name] = value
|
||||
return errors
|
||||
|
||||
def check_param( self, trans, param, incoming_value, param_values ):
|
||||
|
||||
Reference in New Issue
Block a user