)]}'
{"openstack_dashboard/api/quantum.py":[{"author":{"_account_id":1816,"name":"Gabriel Hurley","email":"gabriel.hurley@nebula.com","username":"gabriel-hurley"},"change_message_id":"accca56e0f8706684c3ef208e5c06a5a0c9a9c67","unresolved":false,"context_lines":[{"line_number":54,"context_line":"    def __init__(self, apiresource):"},{"line_number":55,"context_line":"        apiresource[\u0027admin_state\u0027] \u003d \\"},{"line_number":56,"context_line":"            \u0027UP\u0027 if apiresource[\u0027admin_state_up\u0027] else \u0027DOWN\u0027"},{"line_number":57,"context_line":"        # Django cannot handle a key name with a colon, so remap another key"},{"line_number":58,"context_line":"        for key in apiresource.keys():"},{"line_number":59,"context_line":"            if key.find(\u0027:\u0027):"},{"line_number":60,"context_line":"                apiresource[\u0027__\u0027.join(key.split(\u0027:\u0027))] \u003d apiresource[key]"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAM3%2F%2FxGs%3D","line":57,"updated":"2013-01-06 21:33:55.000000000","message":"You can use dict.get(\"router:external\") for dictionaries or getattr(obj, \"router:external\") for objects. We have a few keys like this for Nova instance properties. There\u0027s no need to rewrite the key.","commit_id":"31d55e503d578f3af86fed15a37127aff9871ecd"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"d9d6e3e128593663ab0007d41e8b71d68f20af6c","unresolved":false,"context_lines":[{"line_number":54,"context_line":"    def __init__(self, apiresource):"},{"line_number":55,"context_line":"        apiresource[\u0027admin_state\u0027] \u003d \\"},{"line_number":56,"context_line":"            \u0027UP\u0027 if apiresource[\u0027admin_state_up\u0027] else \u0027DOWN\u0027"},{"line_number":57,"context_line":"        # Django cannot handle a key name with a colon, so remap another key"},{"line_number":58,"context_line":"        for key in apiresource.keys():"},{"line_number":59,"context_line":"            if key.find(\u0027:\u0027):"},{"line_number":60,"context_line":"                apiresource[\u0027__\u0027.join(key.split(\u0027:\u0027))] \u003d apiresource[key]"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAM3%2F%2FxAk%3D","line":57,"in_reply_to":"AAAAM3%2F%2FxGs%3D","updated":"2013-01-07 02:15:57.000000000","message":"Actually the problem I had is that \"network.router:external\" cannot be referred to appropriately in django templates. In other cases I have no trouble with a key with colon.","commit_id":"31d55e503d578f3af86fed15a37127aff9871ecd"}]}
