commit/galaxy-central: greg: Improved messaging when upgrading an installed repository in Galaxy.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/9165ed69a678/ Changeset: 9165ed69a678 User: greg Date: 2014-01-14 22:54:09 Summary: Improved messaging when upgrading an installed repository in Galaxy. Affected #: 1 file diff -r 027eb5827babc5a6b07b6c3e098bacd09185adf4 -r 9165ed69a678010aff37fdc93f3a25661aa44e79 lib/galaxy/webapps/galaxy/controllers/admin_toolshed.py --- a/lib/galaxy/webapps/galaxy/controllers/admin_toolshed.py +++ b/lib/galaxy/webapps/galaxy/controllers/admin_toolshed.py @@ -497,9 +497,10 @@ suc.repository_was_previously_installed( trans, tool_shed_url, name, tmp_repo_info_tuple ) if installed_repository: current_changeset_revision = str( installed_repository.changeset_revision ) - message = 'Revision %s of repository %s owned by %s has already been installed.' + message = 'Revision <b>%s</b> of repository <b>%s</b> owned by <b>%s</b> has already been installed.' % \ + ( latest_downloadable_revision, name, owner ) if current_changeset_revision != latest_downloadable_revision: - message += ' The current changeset revision is %s.' % current_changeset_revision + message += ' The current changeset revision is <b>%s</b>.' % current_changeset_revision status = 'error' else: # Install the latest downloadable revision of the repository. @@ -508,10 +509,10 @@ ( name, owner, latest_downloadable_revision, web.url_for( '/', qualified=True ) ) ) return trans.response.send_redirect( url ) else: - message = 'Cannot locate installed tool shed repository with encoded id %s.' % str( repository_id ) + message = 'Cannot locate installed tool shed repository with encoded id <b>%s</b>.' % str( repository_id ) status = 'error' else: - message = 'The request parameters did not include the required encoded id of installed repository.' + message = 'The request parameters did not include the required encoded <b>id</b> of installed repository.' status = 'error' return trans.response.send_redirect( web.url_for( 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