예제 #1
0
 def __setup_tool_config(self, conf):
     """
     Setups toolbox object and authorization mechanism based
     on supplied toolbox_path.
     """
     tool_config_files = conf.get("tool_config_files", None)
     if not tool_config_files:
         # For compatibity with Galaxy, allow tool_config_file
         # option name.
         tool_config_files = conf.get("tool_config_file", None)
     toolbox = None
     if tool_config_files:
         toolbox = ToolBox(tool_config_files)
     else:
         log.info(NOT_WHITELIST_WARNING)
     self.toolbox = toolbox
     self.authorizer = get_authorizer(toolbox)
예제 #2
0
def get_test_toolbox():
    toolbox_path = join(dirname(__file__), pardir, "test_data", "test_shed_toolbox.xml")
    toolbox = ToolBox(toolbox_path)
    return toolbox