)]}'
{"openstack_auth/views.py":[{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"56c2c3e9308dd92923737e91e9fed9e622d03194","unresolved":false,"context_lines":[{"line_number":177,"context_line":"            {\u0027username\u0027: request.user.username}"},{"line_number":178,"context_line":"        LOG.info(msg)"},{"line_number":179,"context_line":"        message \u003d _(\u0027Switch to project \"%(tenant_name)s\" successful.\u0027) % \\"},{"line_number":180,"context_line":"            {\u0027tenant_name\u0027: request.user.tenant_name}"},{"line_number":181,"context_line":"        messages.success(request, message)"},{"line_number":182,"context_line":"    except keystone_exceptions.ClientException:"},{"line_number":183,"context_line":"        msg \u003d \u0027Project switch failed for user \"%(username)s\".\u0027 % \\"}],"source_content_type":"text/x-python","patch_set":2,"id":"baa041b7_61c0342b","line":180,"updated":"2015-04-02 23:17:32.000000000","message":"this would still have the old project name at this point, request.user only gets updated at line 197","commit_id":"9f8ddb316cb532955f44a99157c56633199e0722"},{"author":{"_account_id":9961,"name":"tinytmy","email":"tangmeiyan77@gmail.com","username":"tinytmy"},"change_message_id":"efc38438d76a88d639c182b6543930f1d1d0fef4","unresolved":false,"context_lines":[{"line_number":177,"context_line":"            {\u0027username\u0027: request.user.username}"},{"line_number":178,"context_line":"        LOG.info(msg)"},{"line_number":179,"context_line":"        message \u003d _(\u0027Switch to project \"%(tenant_name)s\" successful.\u0027) % \\"},{"line_number":180,"context_line":"            {\u0027tenant_name\u0027: request.user.tenant_name}"},{"line_number":181,"context_line":"        messages.success(request, message)"},{"line_number":182,"context_line":"    except keystone_exceptions.ClientException:"},{"line_number":183,"context_line":"        msg \u003d \u0027Project switch failed for user \"%(username)s\".\u0027 % \\"}],"source_content_type":"text/x-python","patch_set":2,"id":"baa041b7_ccdcd7e6","line":180,"in_reply_to":"baa041b7_61c0342b","updated":"2015-04-03 00:34:28.000000000","message":"Yes, thanks!\nBesides, please look this review https://review.openstack.org/#/c/152794/","commit_id":"9f8ddb316cb532955f44a99157c56633199e0722"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"56c2c3e9308dd92923737e91e9fed9e622d03194","unresolved":false,"context_lines":[{"line_number":184,"context_line":"            {\u0027username\u0027: request.user.username}"},{"line_number":185,"context_line":"        LOG.warning(msg)"},{"line_number":186,"context_line":"        message \u003d _(\u0027Switch to project \"%(tenant_name)s\" failed.\u0027) % \\"},{"line_number":187,"context_line":"            {\u0027tenant_name\u0027: request.user.tenant_name}"},{"line_number":188,"context_line":"        messages.error(request, message)"},{"line_number":189,"context_line":"        auth_ref \u003d None"},{"line_number":190,"context_line":"        LOG.exception(\u0027An error occurred while switching sessions.\u0027)"}],"source_content_type":"text/x-python","patch_set":2,"id":"baa041b7_21e10cd1","line":187,"updated":"2015-04-02 23:17:32.000000000","message":"and here too","commit_id":"9f8ddb316cb532955f44a99157c56633199e0722"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"de7f8e025fb70139c51a0b77af57b0648150d697","unresolved":false,"context_lines":[{"line_number":20,"context_line":"from django.contrib.auth.decorators import login_required  # noqa"},{"line_number":21,"context_line":"from django.contrib.auth import views as django_auth_views"},{"line_number":22,"context_line":"from django import http as django_http"},{"line_number":23,"context_line":"from django.contrib import messages"},{"line_number":24,"context_line":"from django import shortcuts"},{"line_number":25,"context_line":"from django.utils import functional"},{"line_number":26,"context_line":"from django.utils import http"}],"source_content_type":"text/x-python","patch_set":3,"id":"3afb71cf_9d29c59d","line":23,"updated":"2015-06-10 16:54:47.000000000","message":"pep8 error, move this import up to correct the sorting","commit_id":"d6233d48866f480d68744edac85c20aefe5fcd1b"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"de7f8e025fb70139c51a0b77af57b0648150d697","unresolved":false,"context_lines":[{"line_number":221,"context_line":"            {\u0027username\u0027: request.user.username}"},{"line_number":222,"context_line":"        LOG.info(msg)"},{"line_number":223,"context_line":"    except keystone_exceptions.ClientException:"},{"line_number":224,"context_line":"        msg \u003d \u0027Project switch failed for user \"%(username)s\".\u0027 % \\"},{"line_number":225,"context_line":"            {\u0027username\u0027: request.user.username}"},{"line_number":226,"context_line":"        LOG.warning(msg)"},{"line_number":227,"context_line":"        messages.error(request, msg)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3afb71cf_48082d28","line":224,"updated":"2015-06-10 16:54:47.000000000","message":"this needs to be translatable now since it is user visible","commit_id":"d6233d48866f480d68744edac85c20aefe5fcd1b"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"de7f8e025fb70139c51a0b77af57b0648150d697","unresolved":false,"context_lines":[{"line_number":244,"context_line":"            auth_user.Token(auth_ref, unscoped_token\u003dunscoped_token),"},{"line_number":245,"context_line":"            endpoint)"},{"line_number":246,"context_line":"        auth_user.set_session_from_user(request, user)"},{"line_number":247,"context_line":"        message \u003d _(\u0027Switch to project \"%(tenant_name)s\" successful.\u0027) % \\"},{"line_number":248,"context_line":"            {\u0027tenant_name\u0027: request.user.tenant_name}"},{"line_number":249,"context_line":"        messages.success(request, message)"},{"line_number":250,"context_line":"    response \u003d shortcuts.redirect(redirect_to)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3afb71cf_8877459f","line":247,"updated":"2015-06-10 16:54:47.000000000","message":"Use parenthesis instead of \\  for multi-line code","commit_id":"d6233d48866f480d68744edac85c20aefe5fcd1b"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"780f8ecfc4df44105cd933b4f1dffca2bb020ae7","unresolved":false,"context_lines":[{"line_number":219,"context_line":"            {\u0027username\u0027: request.user.username}"},{"line_number":220,"context_line":"        LOG.info(msg)"},{"line_number":221,"context_line":"    except keystone_exceptions.ClientException:"},{"line_number":222,"context_line":"        msg \u003d _(\u0027Project switch failed for user \"%(username)s\".\u0027 %"},{"line_number":223,"context_line":"            {\u0027username\u0027: request.user.username})"},{"line_number":224,"context_line":"        LOG.warning(msg)"},{"line_number":225,"context_line":"        messages.error(request, msg)"}],"source_content_type":"text/x-python","patch_set":5,"id":"1af86dd1_420337b9","line":222,"updated":"2015-06-12 03:55:08.000000000","message":"closing parenthesis should be on the text only\n\n_(\u0027Project switch failed for user \"%(username)s\".\u0027)","commit_id":"6b38ad70c33aafb427fcf1d515fe3127be7a72df"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"780f8ecfc4df44105cd933b4f1dffca2bb020ae7","unresolved":false,"context_lines":[{"line_number":242,"context_line":"            auth_user.Token(auth_ref, unscoped_token\u003dunscoped_token),"},{"line_number":243,"context_line":"            endpoint)"},{"line_number":244,"context_line":"        auth_user.set_session_from_user(request, user)"},{"line_number":245,"context_line":"        message \u003d _(\u0027Switch to project \"%(tenant_name)s\" successful.\u0027 %"},{"line_number":246,"context_line":"            {\u0027tenant_name\u0027: request.user.tenant_name})"},{"line_number":247,"context_line":"        messages.success(request, message)"},{"line_number":248,"context_line":"    response \u003d shortcuts.redirect(redirect_to)"}],"source_content_type":"text/x-python","patch_set":5,"id":"1af86dd1_22003baa","line":245,"updated":"2015-06-12 03:55:08.000000000","message":"same here","commit_id":"6b38ad70c33aafb427fcf1d515fe3127be7a72df"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"ab6c558c74173d4fd4629f504ec3fe06cce13db7","unresolved":false,"context_lines":[{"line_number":245,"context_line":"        auth_user.set_session_from_user(request, user)"},{"line_number":246,"context_line":"        message \u003d ("},{"line_number":247,"context_line":"            _(\u0027Switch to project \"%(tenant_name)s\" successful.\u0027) %"},{"line_number":248,"context_line":"            {\u0027tenant_name\u0027: request.user.tenant_name})"},{"line_number":249,"context_line":"        messages.success(request, message)"},{"line_number":250,"context_line":"    response \u003d shortcuts.redirect(redirect_to)"},{"line_number":251,"context_line":"    utils.set_response_cookie(response, \u0027recent_project\u0027,"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa32b979_3de1fd9a","line":248,"updated":"2015-06-16 07:10:32.000000000","message":"Use request.user.project_name, tenant_name is deprecated.","commit_id":"bfe1f2360fef388ce8127d4e69690ca86ff94d11"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"684a85daa1daadae8b55bc032e7a27816da3a418","unresolved":false,"context_lines":[{"line_number":222,"context_line":"        msg \u003d ("},{"line_number":223,"context_line":"            _(\u0027Project switch failed for user \"%(username)s\".\u0027) %"},{"line_number":224,"context_line":"            {\u0027username\u0027: request.user.username})"},{"line_number":225,"context_line":"        LOG.warning(msg)"},{"line_number":226,"context_line":"        messages.error(request, msg)"},{"line_number":227,"context_line":"        auth_ref \u003d None"},{"line_number":228,"context_line":"        LOG.exception(\u0027An error occurred while switching sessions.\u0027)"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_8eb8952b","line":225,"updated":"2015-07-02 18:10:43.000000000","message":"log message should not be localized.","commit_id":"9241a13bb1858c9add347f9941f7c7b5c9a9259a"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"0744771c77223a67f3ecd8eb39d78edf8c351064","unresolved":false,"context_lines":[{"line_number":222,"context_line":"        msg \u003d ("},{"line_number":223,"context_line":"            _(\u0027Project switch failed for user \"%(username)s\".\u0027) %"},{"line_number":224,"context_line":"            {\u0027username\u0027: request.user.username})"},{"line_number":225,"context_line":"        LOG.warning(msg)"},{"line_number":226,"context_line":"        messages.error(request, msg)"},{"line_number":227,"context_line":"        auth_ref \u003d None"},{"line_number":228,"context_line":"        LOG.exception(\u0027An error occurred while switching sessions.\u0027)"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_698e6b2f","line":225,"in_reply_to":"ba3cc151_8eb8952b","updated":"2015-07-02 18:44:47.000000000","message":"hmm this is actually redundant, we have a log warning and a log.exception().  This should probably just be combined together","commit_id":"9241a13bb1858c9add347f9941f7c7b5c9a9259a"}]}
