<%inherit file="/base.mako"/> <%namespace file="/message.mako" import="render_msg" /> <%namespace file="/admin/tool_shed_repository/repository_actions_menu.mako" import="*" /> <%def name="stylesheets()"> ${parent.stylesheets()} ${h.css( "library" )} <%def name="javascripts()"> ${parent.javascripts()} ${render_galaxy_repository_actions( repository )} %if message: ${render_msg( message, status )} %endif

Purging the repository named ${repository.name|h} will result in deletion of all records for the following associated items from the database. Click the Purge button to purge this repository and its associated items.

Purge tool shed repository ${repository.name|h}
<% tool_versions = 0 tool_dependencies = 0 required_repositories = 0 orphan_repository_repository_dependency_association_records = 0 orphan_repository_dependency_records = 0 # Count this repository's tool version lineage chain links that will be purged. for tool_version in repository.tool_versions: for tool_version_association in tool_version.parent_tool_association: tool_versions += 1 for tool_version_association in tool_version.child_tool_association: tool_versions += 1 tool_versions += 1 # Count this repository's associated tool dependencies that will be purged. for tool_dependency in repository.tool_dependencies: tool_dependencies += 1 # Count this repository's associated required repositories that will be purged. for rrda in repository.required_repositories: required_repositories += 1 # Count any "orphan" repository_dependency records associated with the repository but not with any # repository_repository_dependency_association records that will be purged. for orphan_repository_dependency in \ trans.sa_session.query( trans.app.install_model.RepositoryDependency ) \ .filter( trans.app.install_model.RepositoryDependency.table.c.tool_shed_repository_id == repository.id ): for orphan_rrda in \ trans.sa_session.query( trans.app.install_model.RepositoryRepositoryDependencyAssociation ) \ .filter( trans.app.install_model.RepositoryRepositoryDependencyAssociation.table.c.repository_dependency_id == orphan_repository_dependency.id ): orphan_repository_repository_dependency_association_records += 1 orphan_repository_dependency_records += 1 %>
Tool version records${tool_versions|h}
Tool dependency records${tool_dependencies|h}
Repository dependency records${required_repositories|h}
Orphan repository_repository_dependency_association records${orphan_repository_repository_dependency_association_records|h}
Orphan repository_dependency records${orphan_repository_dependency_records|h}