Skip to content

Commit

Permalink
Fix a redirect to success message
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Oct 16, 2017
1 parent 145a7bd commit 50322ce
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion lib/galaxy/webapps/galaxy/controllers/admin_toolshed.py
Original file line number Diff line number Diff line change
Expand Up @@ -1146,7 +1146,12 @@ def purge_repository(self, trans, **kwd):
irm = trans.app.installed_repository_manager
purge_status, purge_message = irm.purge_repository(repository)
if purge_status == 'ok':
new_kwd['status'] = "done"
new_kwd['status'] = 'done'
return trans.response.send_redirect(web.url_for(controller='admin_toolshed',
action='manage_repository',
message=message,
status=status,
id=repository_id))
else:
new_kwd['status'] = 'error'
new_kwd['message'] = purge_message
Expand Down
4 changes: 3 additions & 1 deletion lib/tool_shed/galaxy_install/grids/admin_toolshed_grids.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ def get_accepted_filters(self):
not item.deleted and
item.status == tool_shed_install.ToolShedRepository.installation_status.NEW),
allow_multiple=False,
target='center',
url_args=dict(controller='admin_toolshed',
action='manage_repository',
operation='install')),
Expand All @@ -197,6 +198,7 @@ def get_accepted_filters(self):
condition=(lambda item:
(item.status == tool_shed_install.ToolShedRepository.installation_status.ERROR)),
allow_multiple=False,
target='center',
url_args=dict(controller='admin_toolshed',
action='reset_to_install',
reset_repository=True)),
Expand All @@ -209,7 +211,7 @@ def get_accepted_filters(self):
grids.GridOperation(label="Purge",
condition=(lambda item: item.is_new),
allow_multiple=False,
target=None,
target='center',
url_args=dict(controller='admin_toolshed',
action='purge_repository'))]
standard_filters = []
Expand Down

0 comments on commit 50322ce

Please sign in to comment.