)]}'
{"nova/objects/agent.py":[{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"942d537439889fae6e6f0ac1065ea875050f548f","unresolved":false,"context_lines":[{"line_number":43,"context_line":"        return agent"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    @base.remotable_classmethod"},{"line_number":46,"context_line":"    def get_by_triple(cls, context, hypervisor, os, architecture):"},{"line_number":47,"context_line":"        db_agent \u003d db.agent_build_get_by_triple(context, hypervisor,"},{"line_number":48,"context_line":"                                                os, architecture)"},{"line_number":49,"context_line":"        if not db_agent:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_b18b571d","line":46,"updated":"2015-03-17 14:11:13.000000000","message":"Why don\u0027t you have to use self._context here?  The method is remotable, no?  I\u0027m assuming the answer has something to do with whether or not it\u0027s a classmethod.","commit_id":"87f65f77024e30c47aed0b3608298961128e7493"},{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"70ced4e2f6ccce034038073c86a7b9978aac32b4","unresolved":false,"context_lines":[{"line_number":43,"context_line":"        return agent"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    @base.remotable_classmethod"},{"line_number":46,"context_line":"    def get_by_triple(cls, context, hypervisor, os, architecture):"},{"line_number":47,"context_line":"        db_agent \u003d db.agent_build_get_by_triple(context, hypervisor,"},{"line_number":48,"context_line":"                                                os, architecture)"},{"line_number":49,"context_line":"        if not db_agent:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_71539f39","line":46,"in_reply_to":"9a80dd14_514cdbc8","updated":"2015-03-17 14:15:50.000000000","message":"Ah right, yeah.","commit_id":"87f65f77024e30c47aed0b3608298961128e7493"},{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"3017a5e31bc9e00e2bc3c6b21dd807fae133c587","unresolved":false,"context_lines":[{"line_number":43,"context_line":"        return agent"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    @base.remotable_classmethod"},{"line_number":46,"context_line":"    def get_by_triple(cls, context, hypervisor, os, architecture):"},{"line_number":47,"context_line":"        db_agent \u003d db.agent_build_get_by_triple(context, hypervisor,"},{"line_number":48,"context_line":"                                                os, architecture)"},{"line_number":49,"context_line":"        if not db_agent:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_514cdbc8","line":46,"in_reply_to":"9a80dd14_b18b571d","updated":"2015-03-17 14:12:29.000000000","message":"They\u0027re classmethods so there is no self at this point, thus no place to stash the context. These will continue to take contexts because they\u0027re the zero-hour query methods. They return objects with contexts embedded, which is why the remotable ones (which you call on actual object instances) don\u0027t need context parameters.","commit_id":"87f65f77024e30c47aed0b3608298961128e7493"},{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"942d537439889fae6e6f0ac1065ea875050f548f","unresolved":false,"context_lines":[{"line_number":81,"context_line":"        }"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"    @base.remotable_classmethod"},{"line_number":84,"context_line":"    def get_all(cls, context, hypervisor\u003dNone):"},{"line_number":85,"context_line":"        db_agents \u003d db.agent_build_get_all(context, hypervisor\u003dhypervisor)"},{"line_number":86,"context_line":"        return base.obj_make_list(context, cls(), objects.Agent, db_agents)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_b1b997cd","line":84,"updated":"2015-03-17 14:11:13.000000000","message":"same question here","commit_id":"87f65f77024e30c47aed0b3608298961128e7493"}]}
