)]}'
{"openstack_dashboard/api/rest/network.py":[{"author":{"_account_id":6763,"name":"jingliuqing","email":"jing.liuqing@99cloud.net","username":"jing"},"change_message_id":"9e6892c52b18b9fda927397659d7ef55b9bbd17b","unresolved":false,"context_lines":[{"line_number":57,"context_line":"    def post(self, request):"},{"line_number":58,"context_line":"        \"\"\"Allocate a new floating IP address."},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"        :param pool_id: The ID of the floating IP address pool in which to"},{"line_number":61,"context_line":"                        allocate the new address."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"        :return: JSON representation of the new floating IP address"}],"source_content_type":"text/x-python","patch_set":1,"id":"dae33548_ff15f2e4","line":60,"range":{"start_line":60,"start_character":9,"end_line":60,"end_character":22},"updated":"2016-02-17 09:25:38.000000000","message":"in general, the param is param of the method, but the method hasn\u0027t such param.","commit_id":"062bc25b68aeafe175d5bdb3a2f54233794a5f78"},{"author":{"_account_id":6763,"name":"jingliuqing","email":"jing.liuqing@99cloud.net","username":"jing"},"change_message_id":"7dc9d20166e5e62b50c3aa9eeea7239287f1eb64","unresolved":false,"context_lines":[{"line_number":57,"context_line":"    def post(self, request):"},{"line_number":58,"context_line":"        \"\"\"Allocate a new floating IP address."},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"        :param pool_id: The ID of the floating IP address pool in which to"},{"line_number":61,"context_line":"                        allocate the new address."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"        :return: JSON representation of the new floating IP address"}],"source_content_type":"text/x-python","patch_set":1,"id":"dae33548_c077f39d","line":60,"range":{"start_line":60,"start_character":9,"end_line":60,"end_character":22},"in_reply_to":"dae33548_335dc447","updated":"2016-02-19 04:52:16.000000000","message":"thanks for explanation, remove -1 mark","commit_id":"062bc25b68aeafe175d5bdb3a2f54233794a5f78"},{"author":{"_account_id":9647,"name":"Justin Pomeroy","email":"jpomero@linux.vnet.ibm.com","username":"jpomero"},"change_message_id":"4385dde8ebf5f5f329936106f9cffbe329a1e9fe","unresolved":false,"context_lines":[{"line_number":57,"context_line":"    def post(self, request):"},{"line_number":58,"context_line":"        \"\"\"Allocate a new floating IP address."},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"        :param pool_id: The ID of the floating IP address pool in which to"},{"line_number":61,"context_line":"                        allocate the new address."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"        :return: JSON representation of the new floating IP address"}],"source_content_type":"text/x-python","patch_set":1,"id":"dae33548_335dc447","line":60,"range":{"start_line":60,"start_character":9,"end_line":60,"end_character":22},"in_reply_to":"dae33548_ff15f2e4","updated":"2016-02-17 14:45:41.000000000","message":"The params are in the request DATA object.  See this similar method from the glance REST API:  https://github.com/openstack/horizon/blob/master/openstack_dashboard/api/rest/glance.py#L166","commit_id":"062bc25b68aeafe175d5bdb3a2f54233794a5f78"},{"author":{"_account_id":6763,"name":"jingliuqing","email":"jing.liuqing@99cloud.net","username":"jing"},"change_message_id":"9e6892c52b18b9fda927397659d7ef55b9bbd17b","unresolved":false,"context_lines":[{"line_number":64,"context_line":"        \"\"\""},{"line_number":65,"context_line":"        pool \u003d request.DATA[\u0027pool_id\u0027]"},{"line_number":66,"context_line":"        result \u003d api.network.tenant_floating_ip_allocate(request, pool)"},{"line_number":67,"context_line":"        return result.to_dict()"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"    @rest_utils.ajax(data_required\u003dTrue)"},{"line_number":70,"context_line":"    def patch(self, request):"}],"source_content_type":"text/x-python","patch_set":1,"id":"dae33548_5fbcdedb","line":67,"range":{"start_line":67,"start_character":15,"end_line":67,"end_character":31},"updated":"2016-02-17 09:25:38.000000000","message":"HI, is this a JSON object?","commit_id":"062bc25b68aeafe175d5bdb3a2f54233794a5f78"},{"author":{"_account_id":9647,"name":"Justin Pomeroy","email":"jpomero@linux.vnet.ibm.com","username":"jpomero"},"change_message_id":"4385dde8ebf5f5f329936106f9cffbe329a1e9fe","unresolved":false,"context_lines":[{"line_number":64,"context_line":"        \"\"\""},{"line_number":65,"context_line":"        pool \u003d request.DATA[\u0027pool_id\u0027]"},{"line_number":66,"context_line":"        result \u003d api.network.tenant_floating_ip_allocate(request, pool)"},{"line_number":67,"context_line":"        return result.to_dict()"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"    @rest_utils.ajax(data_required\u003dTrue)"},{"line_number":70,"context_line":"    def patch(self, request):"}],"source_content_type":"text/x-python","patch_set":1,"id":"dae33548_566af6b3","line":67,"range":{"start_line":67,"start_character":15,"end_line":67,"end_character":31},"in_reply_to":"dae33548_5fbcdedb","updated":"2016-02-17 14:45:41.000000000","message":"Allocating a floating IP returns a FloatingIP python object and we just want JSON, so the to_dict() method gives us the JSON.","commit_id":"062bc25b68aeafe175d5bdb3a2f54233794a5f78"}]}
