Cleaning up ColumnListParameter and related things.

- Dependencies between parameters and refresh_on_change are now more general.
   Any parameter can assert a dependency on any other parameter by name, and
   if a parameter has dependencies it will cause a refresh.

 - Use "other_values" to get at the value of the associated dataset rather
   than trying to look at the tool. This means that column lists now work
   inside grouping constructs.

 - Eliminated tool.updated_params and use of self.legal_values. These
   variables are GLOBAL. Everybody using a tool has a reference to the same
   instance of tool. Thus, if two people are using the same tool at once this
   can cause serious problems.
This commit is contained in:
James Taylor
2007-10-08 19:33:23 +00:00
parent fd19134676
commit 13608b5a8b
4 changed files with 118 additions and 89 deletions
+2 -2
View File
@@ -18,10 +18,10 @@
<param name="input"
type="data" format="tabular"
label="Dataset"/>
<param name="xcol" type="integer"
<param name="xcol" type="data_column" data_ref="input"
value="1" size="30"
label="Column for x axis"/>
<param name="ycol" type="integer"
<param name="ycol" type="data_column" data_ref="input"
value="1" size="30"
label="Column for y axis"/>
<conditional name="series_type">