commit/galaxy-central: greg: Add the ability to uninstall a Tool Shed repository installed into Galaxy but in an error state.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/e9c28dc0e692/ Changeset: e9c28dc0e692 User: greg Date: 2014-06-26 17:52:42 Summary: Add the ability to uninstall a Tool Shed repository installed into Galaxy but in an error state. Affected #: 2 files diff -r 24d60b6d10fffb69b49c008b71af9dd3b3a4fda1 -r e9c28dc0e6924e7d617041700dec99258f025261 lib/galaxy/model/tool_shed_install/__init__.py --- a/lib/galaxy/model/tool_shed_install/__init__.py +++ b/lib/galaxy/model/tool_shed_install/__init__.py @@ -68,7 +68,9 @@ @property def can_deactivate( self ): - return self.status not in [ self.installation_status.DEACTIVATED, self.installation_status.UNINSTALLED ] + return self.status not in [ self.installation_status.DEACTIVATED, + self.installation_status.ERROR, + self.installation_status.UNINSTALLED ] @property def can_reinstall_or_activate( self ): diff -r 24d60b6d10fffb69b49c008b71af9dd3b3a4fda1 -r e9c28dc0e6924e7d617041700dec99258f025261 lib/tool_shed/galaxy_install/grids/admin_toolshed_grids.py --- a/lib/tool_shed/galaxy_install/grids/admin_toolshed_grids.py +++ b/lib/tool_shed/galaxy_install/grids/admin_toolshed_grids.py @@ -194,9 +194,7 @@ grids.GridOperation( label="Deactivate or uninstall", condition=( lambda item: \ not item.deleted and \ - item.status not in \ - [ tool_shed_install.ToolShedRepository.installation_status.ERROR, - tool_shed_install.ToolShedRepository.installation_status.NEW ] ), + item.status != tool_shed_install.ToolShedRepository.installation_status.NEW ), allow_multiple=False, url_args=dict( controller='admin_toolshed', action='browse_repositories', Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org