)]}'
{"quantum/db/l3_db.py":[{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"f7c57d3e3aa460318f02288dbe5c9fb87f2fe310","unresolved":false,"context_lines":[{"line_number":401,"context_line":"        if not internal_port[\u0027tenant_id\u0027] \u003d\u003d fip[\u0027tenant_id\u0027]:"},{"line_number":402,"context_line":"            msg \u003d (\u0027Port %s is associated with a different tenant \u0027"},{"line_number":403,"context_line":"                   \u0027and therefore cannot be bound to floating IP \"%s\"\u0027"},{"line_number":404,"context_line":"                   % (fip[\u0027port_id\u0027], fip.get(\u0027id\u0027)))"},{"line_number":405,"context_line":"            raise q_exc.BadRequest(resource\u003d\u0027floating\u0027, msg\u003dmsg)"},{"line_number":406,"context_line":""},{"line_number":407,"context_line":"        internal_subnet_id \u003d None"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAALH%2F%2FdoM%3D","line":404,"updated":"2012-09-09 04:37:09.000000000","message":"1. why fip[\u0027id\u0027] will generate keyerror? if the id is not in fip, the fip.get(\u0027id\u0027) will return None, which will not make sense in the msg.\n2.can we use _() to wrap the message, and use dict string replacement?","commit_id":"c784ea415f15cce0a20a6153f0a0fdae95ce9c56"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"f7c57d3e3aa460318f02288dbe5c9fb87f2fe310","unresolved":false,"context_lines":[{"line_number":402,"context_line":"            if \u0027id\u0027 in fip:"},{"line_number":403,"context_line":"                msg \u003d (\u0027Port %s is associated with a different tenant \u0027"},{"line_number":404,"context_line":"                       \u0027than Floating IP %s and therefore cannot be bound.\u0027"},{"line_number":405,"context_line":"                       % (fip[\u0027port_id\u0027], fip[\u0027id\u0027]))"},{"line_number":406,"context_line":"            else:"},{"line_number":407,"context_line":"                msg \u003d (\u0027Cannnot create floating IP and bind it to \u0027"},{"line_number":408,"context_line":"                       \u0027Port %s, since that port is owned by a \u0027"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAALH%2F%2Fdmg%3D","line":405,"updated":"2012-09-09 04:51:06.000000000","message":"If you have multiple variables to place in the string, use keyword parameters.\nThis helps our translators reorder parameters when needed.\n    msg \u003d _(\"The server with id %(s_id)s has no key %(m_key)s\")\n    LOG.error(msg % {\"s_id\": \"1234\", \"m_key\": \"imageId\"})","commit_id":"0baa1cb25326df9681d7888030fef28f98a05489"},{"author":{"_account_id":447,"name":"dan wendlandt","email":"dan@nicira.com","username":"danwent"},"unresolved":false,"context_lines":[{"line_number":402,"context_line":"            if \u0027id\u0027 in fip:"},{"line_number":403,"context_line":"                msg \u003d (\u0027Port %s is associated with a different tenant \u0027"},{"line_number":404,"context_line":"                       \u0027than Floating IP %s and therefore cannot be bound.\u0027"},{"line_number":405,"context_line":"                       % (fip[\u0027port_id\u0027], fip[\u0027id\u0027]))"},{"line_number":406,"context_line":"            else:"},{"line_number":407,"context_line":"                msg \u003d (\u0027Cannnot create floating IP and bind it to \u0027"},{"line_number":408,"context_line":"                       \u0027Port %s, since that port is owned by a \u0027"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAALH%2F%2Fdj0%3D","line":405,"in_reply_to":"AAAALH%2F%2Fdmg%3D","updated":"2012-09-09 05:25:45.000000000","message":"Done","commit_id":"0baa1cb25326df9681d7888030fef28f98a05489"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"f7c57d3e3aa460318f02288dbe5c9fb87f2fe310","unresolved":false,"context_lines":[{"line_number":406,"context_line":"            else:"},{"line_number":407,"context_line":"                msg \u003d (\u0027Cannnot create floating IP and bind it to \u0027"},{"line_number":408,"context_line":"                       \u0027Port %s, since that port is owned by a \u0027"},{"line_number":409,"context_line":"                       \u0027different tenant\u0027 % fip[\u0027port_id\u0027])"},{"line_number":410,"context_line":"            raise q_exc.BadRequest(resource\u003d\u0027floating\u0027, msg\u003dmsg)"},{"line_number":411,"context_line":""},{"line_number":412,"context_line":"        internal_subnet_id \u003d None"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAALH%2F%2FdmY%3D","line":409,"updated":"2012-09-09 04:51:06.000000000","message":"_() the msg.","commit_id":"0baa1cb25326df9681d7888030fef28f98a05489"},{"author":{"_account_id":447,"name":"dan wendlandt","email":"dan@nicira.com","username":"danwent"},"unresolved":false,"context_lines":[{"line_number":406,"context_line":"            else:"},{"line_number":407,"context_line":"                msg \u003d (\u0027Cannnot create floating IP and bind it to \u0027"},{"line_number":408,"context_line":"                       \u0027Port %s, since that port is owned by a \u0027"},{"line_number":409,"context_line":"                       \u0027different tenant\u0027 % fip[\u0027port_id\u0027])"},{"line_number":410,"context_line":"            raise q_exc.BadRequest(resource\u003d\u0027floating\u0027, msg\u003dmsg)"},{"line_number":411,"context_line":""},{"line_number":412,"context_line":"        internal_subnet_id \u003d None"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAALH%2F%2Fdjw%3D","line":409,"in_reply_to":"AAAALH%2F%2FdmY%3D","updated":"2012-09-09 05:25:45.000000000","message":"Done","commit_id":"0baa1cb25326df9681d7888030fef28f98a05489"}]}
