I need to keep a handle on the updated state of tool input parameters.

This commit is contained in:
Greg Von Kuster
2007-09-04 20:11:42 +00:00
parent 98d509553c
commit c342ac4d30
+3
View File
@@ -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 ):