Typo in DataToolParameter.converter_safe()

This commit is contained in:
Daniel Blankenberg
2008-06-04 17:43:46 +00:00
parent 323454c91c
commit bef6fd40e3
+1 -1
View File
@@ -1178,7 +1178,7 @@ class DataToolParameter( ToolParameter ):
converter_safe = [True]
def visitor( prefix, input, value ):
if isinstance( input, SelectToolParameter ) and self.name in input.get_dependencies():
if input.is_dynamic and ( self.dynamic_options or ( not self.dynamic_options and not self.options ) or not input.options.converter_safe ):
if input.is_dynamic and ( input.dynamic_options or ( not input.dynamic_options and not input.options ) or not input.options.converter_safe ):
converter_safe[0] = False #This option does not allow for conversion, i.e. uses contents of dataset file to generate options
self.tool.visit_inputs( other_values, visitor )
return False not in converter_safe