commit/galaxy-central: greg: Add the new sharable link to a repository in the tool shed to the email alerts messages for new repositories and updates to existing repositories.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/fbf37e72e1f4/ changeset: fbf37e72e1f4 user: greg date: 2013-02-11 20:53:54 summary: Add the new sharable link to a repository in the tool shed to the email alerts messages for new repositories and updates to existing repositories. affected #: 1 file diff -r 4f562e319784d0a316157f8e8f6eea1202c7023e -r fbf37e72e1f430d20ec1da7f14c8eeec146abce6 lib/galaxy/util/shed_util_common.py --- a/lib/galaxy/util/shed_util_common.py +++ b/lib/galaxy/util/shed_util_common.py @@ -43,6 +43,7 @@ VALID_CHARS = set( string.letters + string.digits + "'\"-=_.()/+*^,:?!#[]%\\$@;{}" ) new_repo_email_alert_template = """ +Sharable link: ${sharable_link} Repository name: ${repository_name} Revision: ${revision} Change description: @@ -63,8 +64,9 @@ """ email_alert_template = """ +Sharable link: ${sharable_link} Repository name: ${repository_name} -Revision: ${revision} +Revision: ${revision} Change description: ${description} @@ -2364,6 +2366,7 @@ # that was included in the change set. repo_dir = repository.repo_path( trans.app ) repo = hg.repository( get_configured_ui(), repo_dir ) + sharable_link = generate_sharable_link_for_repository_in_tool_shed( trans, repository, changeset_revision=None ) smtp_server = trans.app.config.smtp_server if smtp_server and ( new_repo_alert or repository.email_alerts ): # Send email alert to users that want them. @@ -2389,6 +2392,7 @@ else: template = email_alert_template admin_body = string.Template( template ).safe_substitute( host=trans.request.host, + sharable_link=sharable_link, repository_name=repository.name, revision='%s:%s' %( str( ctx.rev() ), ctx ), display_date=display_date, @@ -2396,6 +2400,7 @@ username=username, content_alert_str=content_alert_str ) body = string.Template( template ).safe_substitute( host=trans.request.host, + sharable_link=sharable_link, repository_name=repository.name, revision='%s:%s' %( str( ctx.rev() ), ctx ), display_date=display_date, 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)
-
Bitbucket