# HG changeset patch -- Bitbucket.org # Project galaxy-dist # URL http://bitbucket.org/galaxy/galaxy-dist/overview # User Kanwei Li <kanwei@gmail.com> # Date 1288813870 14400 # Node ID 16bd91a548887fb0be24b981c2d66fb7ef7b1922 # Parent cf8bef68e8befb8b6631578b71ff69f701fc0d4d Must be logged in to use api keys. Fix small typo in error messages --- a/lib/galaxy/web/controllers/user.py +++ b/lib/galaxy/web/controllers/user.py @@ -984,6 +984,7 @@ class User( BaseController, UsesFormDefi message=message, lines_skipped=lines_skipped ) @web.expose + @web.require_login() def api_keys( self, trans, **kwd ): params = util.Params( kwd ) message = util.restore_text( params.get( 'message', '' ) ) --- a/lib/galaxy/web/framework/__init__.py +++ b/lib/galaxy/web/framework/__init__.py @@ -84,7 +84,7 @@ def require_login( verb="perform this ac return func( self, trans, *args, **kwargs ) else: return trans.show_error_message( - 'You must be <a target="_top" href="%s">logged in</a> to %s</div>.' + 'You must be <a target="_top" href="%s">logged in</a> to %s.' % ( url_for( controller='user', action='login', webapp=webapp ), verb ), use_panels=use_panels ) return decorator return argcatcher