This document is for an old release of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.

Source code for tool_shed.repository_types.registry

import logging

from galaxy.util.odict import odict

from . import repository_suite_definition
from . import tool_dependency_definition
from . import unrestricted

log = logging.getLogger( __name__ )

[docs]class Registry( object ):
[docs] def __init__( self ): self.repository_types_by_label = odict() self.repository_types_by_label[ 'unrestricted' ] = unrestricted.Unrestricted() self.repository_types_by_label[ 'repository_suite_definition' ] = repository_suite_definition.RepositorySuiteDefinition() self.repository_types_by_label[ 'tool_dependency_definition' ] = tool_dependency_definition.ToolDependencyDefinition()
[docs] def get_class_by_label( self, label ): return self.repository_types_by_label.get( label, None )