During workflow export, update workflow modules before visiting inputs to avoid errors resulting from parameter changes.

This commit is contained in:
Jeremy Goecks
2013-05-30 17:38:57 -04:00
parent 4ef01c2820
commit 97e8dc495a
@@ -1756,6 +1756,9 @@ class WorkflowController( BaseUIController, SharableMixin, UsesStoredWorkflowMix
def callback( input, value, prefixed_name, prefixed_label ):
if isinstance( input, DataToolParameter ):
data_input_names[ prefixed_name ] = True
# FIXME: this updates modules silently right now; messages from updates should be provided.
module.check_and_update_state()
visit_input_values( module.tool.inputs, module.state.inputs, callback )
# Filter
# FIXME: this removes connection without displaying a message currently!