)]}'
{"ovsdbapp/api.py":[{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"ec7bf07d391be5cd37ff969c14ee158a15a713a1","unresolved":false,"context_lines":[{"line_number":49,"context_line":"    def extend(self, commands):"},{"line_number":50,"context_line":"        \"\"\"Add multiple OVSDB operations to the transaction\"\"\""},{"line_number":51,"context_line":"        for command in commands:"},{"line_number":52,"context_line":"            self.add(command)"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    def __enter__(self):"},{"line_number":55,"context_line":"        return self"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff82abbf_b3618414","line":52,"updated":"2017-11-30 20:16:27.000000000","message":"the two Transaction.add implementations return the Command objects back as a convenience so you can do:\n\n with api.transaction() as txn:\n     x \u003d txn.add(func_that_returns_cmd())\n     y \u003d txn.add(func_that_returns_other_cmd())\n\nand then access x.result/y.result. So since there are actual return values for add(), you could do:\n\n return [self.add(cmd) for cmd in commands]\n\neven though it feels a little weird.","commit_id":"c6ae5308a553e3f4fbde4d773aeb3878644c8446"},{"author":{"_account_id":27378,"name":"Petr Horáček","email":"phoracek@redhat.com","username":"phoracek"},"change_message_id":"891f052063051a62c8b7016ec305e09d7c517837","unresolved":false,"context_lines":[{"line_number":49,"context_line":"    def extend(self, commands):"},{"line_number":50,"context_line":"        \"\"\"Add multiple OVSDB operations to the transaction\"\"\""},{"line_number":51,"context_line":"        for command in commands:"},{"line_number":52,"context_line":"            self.add(command)"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    def __enter__(self):"},{"line_number":55,"context_line":"        return self"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff82abbf_b682d251","line":52,"in_reply_to":"ff82abbf_b3618414","updated":"2017-11-30 20:26:17.000000000","message":"that looks funny, I\u0027ll do that :D","commit_id":"c6ae5308a553e3f4fbde4d773aeb3878644c8446"}]}
