[hg] galaxy 1565: Fix for fix for unit tests.

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

[hg] galaxy 1565: Fix for fix for unit tests.

Nate Coraor (nate@bx.psu.edu)
details:   http://www.bx.psu.edu/hg/galaxy/rev/4f9042e95e60
changeset: 1565:4f9042e95e60
user:      Dan Blankenberg <[hidden email]>
date:      Mon Oct 20 16:51:51 2008 -0400
description:
Fix for fix for unit tests.

1 file(s) affected in this change:

lib/galaxy/tools/parameters/basic.py

diffs (12 lines):

diff -r eef0fd813076 -r 4f9042e95e60 lib/galaxy/tools/parameters/basic.py
--- a/lib/galaxy/tools/parameters/basic.py Mon Oct 20 15:09:47 2008 -0400
+++ b/lib/galaxy/tools/parameters/basic.py Mon Oct 20 16:51:51 2008 -0400
@@ -1182,7 +1182,7 @@
             return []
 
     def converter_safe( self, other_values, trans ):
-        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:
+        if self.tool is None 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