コード例 #1
0
 def biostar_tool_question_redirect(self, trans, tool_id=None):
     """
     Generate a redirect to a Biostar site using external authentication to
     pass Galaxy user information and information about a specific tool.
     """
     # tool_id is required
     if tool_id is None:
         return error("No tool_id provided")
     # Load the tool
     tool_version_select_field, tools, tool = \
         self.app.toolbox.get_tool_components( tool_id, tool_version=None, get_loaded_tools_by_lineage=False, set_selected=True )
     # No matching tool, unlikely
     if not tool:
         return error("No tool found matching '%s'" % tool_id)
     # Tool specific information for payload
     payload = biostar.populate_tool_payload(tool=tool)
     # Pass on to regular question method
     return self.biostar_question_redirect(trans, payload)
コード例 #2
0
ファイル: biostar.py プロジェクト: ImmPortDB/immport-galaxy
 def biostar_tool_question_redirect(self, trans, tool_id=None):
     """
     Generate a redirect to a Biostar site using external authentication to
     pass Galaxy user information and information about a specific tool.
     """
     # tool_id is required
     if tool_id is None:
         return error("No tool_id provided")
     # Load the tool
     tool_version_select_field, tools, tool = \
         self.app.toolbox.get_tool_components(tool_id, tool_version=None, get_loaded_tools_by_lineage=False, set_selected=True)
     # No matching tool, unlikely
     if not tool:
         return error("No tool found matching '%s'" % tool_id)
     # Tool specific information for payload
     payload = biostar.populate_tool_payload(tool=tool)
     # Pass on to regular question method
     return self.biostar_question_redirect(trans, payload)