From 6166c76b6cbc05632c28c953b42b2ae4a4872153 Mon Sep 17 00:00:00 2001 From: Daniel Blankenberg Date: Sun, 15 Apr 2012 08:37:00 -0400 Subject: [PATCH] Fix for workflow module.__get_tool_version. --- lib/galaxy/workflow/modules.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/galaxy/workflow/modules.py b/lib/galaxy/workflow/modules.py index 2dbfd7b2ab0..7f915c18ed6 100644 --- a/lib/galaxy/workflow/modules.py +++ b/lib/galaxy/workflow/modules.py @@ -199,7 +199,7 @@ class ToolModule( WorkflowModule ): # TODO: If workflows are ever enhanced to use tool version # in addition to tool id, enhance the selection process here # to retrieve the correct version of the tool. - tool_version = self.__get_tool_version( trans, tool_id ) + tool_version = Class.__get_tool_version( trans, tool_id ) if tool_version: tool_version_ids = tool_version.get_version_ids( trans.app ) for tool_version_id in tool_version_ids: @@ -219,7 +219,8 @@ class ToolModule( WorkflowModule ): module.post_job_actions = pjadict return module return None - def __get_tool_version( self, trans, tool_id ): + @classmethod + def __get_tool_version( cls, trans, tool_id ): # Return a ToolVersion if one exists for tool_id. return trans.sa_session.query( trans.app.model.ToolVersion ) \ .filter( trans.app.model.ToolVersion.table.c.tool_id == tool_id ) \