commit/galaxy-central: greg: Add missing attributes to the ToolDataTable class.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/0074aa873198/ changeset: 0074aa873198 user: greg date: 2012-11-15 15:35:25 summary: Add missing attributes to the ToolDataTable class. affected #: 1 file diff -r 340438c62171578078323d39da398d5053b69d0a -r 0074aa873198dc48ae9e8e5f5b7c70a99dc0cf54 lib/galaxy/tools/data/__init__.py --- a/lib/galaxy/tools/data/__init__.py +++ b/lib/galaxy/tools/data/__init__.py @@ -118,6 +118,14 @@ class ToolDataTable( object ): def __init__( self, config_element, tool_data_path ): self.name = config_element.get( 'name' ) + self.comment_char = config_element.get( 'comment_char' ) + for file_elem in config_element.findall( 'file' ): + # There should only be one file_elem. + if 'path' in file_elem.attrib: + tool_data_file_path = file_elem.get( 'path' ) + self.tool_data_file = os.path.split( tool_data_file_path )[1] + else: + self.tool_data_file = None self.tool_data_path = tool_data_path self.missing_index_file = None Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket