[hg] galaxy 2554: Fix a bug with specifying a Tool Class differe...
details: http://www.bx.psu.edu/hg/galaxy/rev/690bbab07115 changeset: 2554:690bbab07115 user: Dan Blankenberg <dan@bx.psu.edu> date: Tue Aug 11 14:59:23 2009 -0400 description: Fix a bug with specifying a Tool Class different from the base. The element object returned by root.find('type') has a boolean value of False even when the element exists (value is None when it does not.) 1 file(s) affected in this change: lib/galaxy/tools/__init__.py diffs (12 lines): diff -r 228dd6f56b68 -r 690bbab07115 lib/galaxy/tools/__init__.py --- a/lib/galaxy/tools/__init__.py Tue Aug 11 13:21:20 2009 -0400 +++ b/lib/galaxy/tools/__init__.py Tue Aug 11 14:59:23 2009 -0400 @@ -128,7 +128,7 @@ tree = util.parse_xml( config_file ) root = tree.getroot() # Allow specifying a different tool subclass to instantiate - if root.find( "type" ): + if root.find( "type" ) is not None: type_elem = root.find( "type" ) module = type_elem.get( 'module', 'galaxy.tools' ) cls = type_elem.get( 'class' )
participants (1)
-
Greg Von Kuster