)]}'
{"keystone/tests/test_wsgi.py":[{"author":{"_account_id":7725,"name":"David Stanek","email":"dstanek@dstanek.com","username":"dstanek"},"change_message_id":"e343b78ba6d44cf47ad3062d97be90c4aec0875a","unresolved":false,"context_lines":[{"line_number":277,"context_line":""},{"line_number":278,"context_line":"                gettext \u003d ugettext"},{"line_number":279,"context_line":""},{"line_number":280,"context_line":"            class LangTranslator(object):"},{"line_number":281,"context_line":"                def ugettext(self, msgid):"},{"line_number":282,"context_line":"                    if msgid \u003d\u003d \"Could not find, %(target)s.\":"},{"line_number":283,"context_line":"                        return xlated_msg_fmt"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAU3%2F%2F0d4%3D","line":280,"updated":"2014-02-24 16:47:26.000000000","message":"If we base this on https://review.openstack.org/#/c/58766 I believe the LangTranslator class (and \u0027if\u0027 statement below) can be removed from the test. I think it is only needed because of the gettextutils monkey patching magic. Due to the way the magic works (and maybe a bug in Message.__new__) the translation happens twice.\n\nI\u0027m going to follow up on the oslo front to see if this is indeed a bug.","commit_id":"c10cd818b3aa1230af84e722f72add3a945d802e"},{"author":{"_account_id":6486,"name":"Brant Knudson","email":"blk@acm.org","username":"blk-u"},"change_message_id":"2e47aef681b3db851bc83d012eca6ad6c4168c49","unresolved":false,"context_lines":[{"line_number":277,"context_line":""},{"line_number":278,"context_line":"                gettext \u003d ugettext"},{"line_number":279,"context_line":""},{"line_number":280,"context_line":"            class LangTranslator(object):"},{"line_number":281,"context_line":"                def ugettext(self, msgid):"},{"line_number":282,"context_line":"                    if msgid \u003d\u003d \"Could not find, %(target)s.\":"},{"line_number":283,"context_line":"                        return xlated_msg_fmt"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAVX%2F%2F46c%3D","line":280,"in_reply_to":"AAAAU3%2F%2F0d4%3D","updated":"2014-02-27 15:24:02.000000000","message":"David - As the comment at line 270 explains, this code is simulating how gettext works as far as is needed to get a \"translated\" string for a message.","commit_id":"c10cd818b3aa1230af84e722f72add3a945d802e"},{"author":{"_account_id":6486,"name":"Brant Knudson","email":"blk@acm.org","username":"blk-u"},"change_message_id":"66c37ab068aa5ee5c27d413dbc4748131244d5f6","unresolved":false,"context_lines":[{"line_number":277,"context_line":""},{"line_number":278,"context_line":"                gettext \u003d ugettext"},{"line_number":279,"context_line":""},{"line_number":280,"context_line":"            class LangTranslator(object):"},{"line_number":281,"context_line":"                def ugettext(self, msgid):"},{"line_number":282,"context_line":"                    if msgid \u003d\u003d \"Could not find, %(target)s.\":"},{"line_number":283,"context_line":"                        return xlated_msg_fmt"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAVX%2F%2Fs58%3D","line":280,"in_reply_to":"AAAAVX%2F%2F46c%3D","updated":"2014-02-28 22:29:37.000000000","message":"David - I tried rebasing on https://review.openstack.org/#/c/58766 and both IdentityTranslator.gettext and LangTranslator.gettext get called -- IdentityTranslator gets called once with \u0027arg_dict: %s\u0027 (from a LOG.debug()), and LangTranslator gets called with \u0027Could not find, %(target)s.\u0027 (from the exception message).\n\nSeems to be working as designed.","commit_id":"c10cd818b3aa1230af84e722f72add3a945d802e"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"86a9379c9be332198d35adf68a9d9d8f67f2d2ac","unresolved":false,"context_lines":[{"line_number":299,"context_line":""},{"line_number":300,"context_line":"            class LangTranslator(object):"},{"line_number":301,"context_line":"                def ugettext(self, msgid):"},{"line_number":302,"context_line":"                    if msgid \u003d\u003d \"Could not find, %(target)s.\":"},{"line_number":303,"context_line":"                        return xlated_msg_fmt"},{"line_number":304,"context_line":"                    return msgid"},{"line_number":305,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAXH%2F%2FBy0%3D","line":302,"updated":"2014-04-24 14:52:13.000000000","message":"this might as well be dynamically referenced as exception.NotFound.message_format","commit_id":"21ce5407411e47c45f562c800ed9fc2a67131010"},{"author":{"_account_id":6486,"name":"Brant Knudson","email":"blk@acm.org","username":"blk-u"},"change_message_id":"879534ac4f146a1f9f4aacf27993ee7abf558a3f","unresolved":false,"context_lines":[{"line_number":299,"context_line":""},{"line_number":300,"context_line":"            class LangTranslator(object):"},{"line_number":301,"context_line":"                def ugettext(self, msgid):"},{"line_number":302,"context_line":"                    if msgid \u003d\u003d \"Could not find, %(target)s.\":"},{"line_number":303,"context_line":"                        return xlated_msg_fmt"},{"line_number":304,"context_line":"                    return msgid"},{"line_number":305,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAXX%2F%2F9uo%3D","line":302,"in_reply_to":"AAAAXH%2F%2FBy0%3D","updated":"2014-04-25 00:15:16.000000000","message":"Done","commit_id":"21ce5407411e47c45f562c800ed9fc2a67131010"}]}
