[hg] galaxy 1563: Fix for unit test for DataTool Parameter

classic Classic list List threaded Threaded
1 message Options
| Threaded
Open this post in threaded view
|

[hg] galaxy 1563: Fix for unit test for DataTool Parameter

Nate Coraor (nate@bx.psu.edu)
details:   http://www.bx.psu.edu/hg/galaxy/rev/98867708d5ae
changeset: 1563:98867708d5ae
user:      Dan Blankenberg <[hidden email]>
date:      Mon Oct 20 14:16:38 2008 -0400
description:
Fix for unit test for DataTool Parameter

1 file(s) affected in this change:

lib/galaxy/tools/parameters/basic.py

diffs (12 lines):

diff -r 26ae03082033 -r 98867708d5ae lib/galaxy/tools/parameters/basic.py
--- a/lib/galaxy/tools/parameters/basic.py Mon Oct 20 12:44:33 2008 -0400
+++ b/lib/galaxy/tools/parameters/basic.py Mon Oct 20 14:16:38 2008 -0400
@@ -1181,7 +1181,7 @@
             return []
 
     def converter_safe( self, other_values, trans ):
-        if self.tool.has_multiple_pages or not hasattr( trans, 'workflow_building_mode' ) or trans.workflow_building_mode:
+        if not hasattr( trans, 'has_multiple_pages' ) or self.tool.has_multiple_pages or not hasattr( trans, 'workflow_building_mode' ) or trans.workflow_building_mode:
             return False
         if other_values is None:
             return True # we don't know other values, so we can't check, assume ok