tool_shed.repository_types package

Submodules

tool_shed.repository_types.metadata module

class tool_shed.repository_types.metadata.Metadata[source]

Bases: object

__init__()[source]
get_changesets_for_setting_metadata(app, repository)[source]
is_valid_for_type(app, repository, revisions_to_check=None)[source]
class tool_shed.repository_types.metadata.TipOnly[source]

Bases: tool_shed.repository_types.metadata.Metadata

__init__()[source]
get_changesets_for_setting_metadata(app, repository)[source]

tool_shed.repository_types.registry module

class tool_shed.repository_types.registry.Registry[source]

Bases: object

__init__()[source]
get_class_by_label(label)[source]

tool_shed.repository_types.repository_suite_definition module

class tool_shed.repository_types.repository_suite_definition.RepositorySuiteDefinition[source]

Bases: tool_shed.repository_types.metadata.TipOnly

__init__()[source]
is_valid_for_type(app, repository, revisions_to_check=None)[source]

Inspect the received repository’s contents to determine if they abide by the rules defined for the contents of this type. If the received revisions_to_check is a list of changeset revisions, then inspection will be restricted to the revisions in the list.

tool_shed.repository_types.tool_dependency_definition module

class tool_shed.repository_types.tool_dependency_definition.ToolDependencyDefinition[source]

Bases: tool_shed.repository_types.metadata.TipOnly

__init__()[source]
is_valid_for_type(app, repository, revisions_to_check=None)[source]

Inspect the received repository’s contents to determine if they abide by the rules defined for the contents of this type. If the received revisions_to_check is a list of changeset revisions, then inspection will be restricted to the revisions in the list.

tool_shed.repository_types.unrestricted module

class tool_shed.repository_types.unrestricted.Unrestricted[source]

Bases: tool_shed.repository_types.metadata.Metadata

__init__()[source]
is_valid_for_type(app, repository, revisions_to_check=None)[source]

A repository’s type can only be changed to the unrestricted type if it is new or has never been installed.

tool_shed.repository_types.util module

tool_shed.repository_types.util.build_repository_type_select_field(trans, repository=None, name='repository_type')[source]

Called from the Tool Shed to generate the current list of supported repository types.

tool_shed.repository_types.util.generate_message_for_repository_type_change(app, repository)[source]