commit/galaxy-central: guerler: Use web.url_for instead of global call in visualization controller
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/706834360e2a/ Changeset: 706834360e2a User: guerler Date: 2013-08-21 05:44:14 Summary: Use web.url_for instead of global call in visualization controller Affected #: 1 file diff -r f08aa61645ae67e8ac2c3dc94c6b79f8115b1b5a -r 706834360e2ace3d41146ff60d252715c5b726f1 lib/galaxy/webapps/galaxy/controllers/visualization.py --- a/lib/galaxy/webapps/galaxy/controllers/visualization.py +++ b/lib/galaxy/webapps/galaxy/controllers/visualization.py @@ -421,7 +421,7 @@ if referer is not "": referer_message = "<a href='%s'>return to the previous page</a>" % referer else: - referer_message = "<a href='%s'>go to Galaxy's start page</a>" % url_for( '/' ) + referer_message = "<a href='%s'>go to Galaxy's start page</a>" % web.url_for( '/' ) # Do import. session = trans.sa_session @@ -512,7 +512,7 @@ self.create_item_slug( session, visualization ) session.flush() trans.set_message( "Visualization '%s' shared with user '%s'" % ( visualization.title, other.email ) ) - return trans.response.send_redirect( url_for(controller='visualization', action='sharing', id=id ) ) + return trans.response.send_redirect( web.url_for(controller='visualization', action='sharing', id=id ) ) return trans.fill_template( "/ind_share_base.mako", message = msg, messagetype = mtype, @@ -560,7 +560,7 @@ if self.create_item_slug( trans.sa_session, visualization ): trans.sa_session.flush() - return_dict = { "name" : visualization.title, "link" : url_for(controller='visualization', action="display_by_username_and_slug", username=visualization.user.username, slug=visualization.slug ) } + return_dict = { "name" : visualization.title, "link" : web.url_for(controller='visualization', action="display_by_username_and_slug", username=visualization.user.username, slug=visualization.slug ) } return return_dict @web.expose 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