)]}'
{"ironic/common/context.py":[{"author":{"_account_id":16051,"name":"Ronald Bradford","email":"ronald.bradford@gmail.com","username":"ronaldbradford"},"change_message_id":"28e2e524d1214ca1e40c44a26df791b5ebdd5f9f","unresolved":false,"context_lines":[{"line_number":58,"context_line":""},{"line_number":59,"context_line":"    @classmethod"},{"line_number":60,"context_line":"    def from_dict(cls, values):"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"        # The list matches the arguments to RequestContext.__init__, except"},{"line_number":63,"context_line":"        # user and tenant are not included."},{"line_number":64,"context_line":"        init_arg_names \u003d ["}],"source_content_type":"text/x-python","patch_set":1,"id":"bae84128_d10a351f","line":61,"updated":"2016-02-24 16:40:57.000000000","message":"I would question why user and tenant are explicitly excluded (I know that may be difficult to work out). If this was the case, calling super() in __init__ would specifically set this to None would it not!  The code is already inconsistent.\n\nSee base class http://git.openstack.org/cgit/openstack/oslo.context/tree/oslo_context/context.py#n116 for an exclusion approach, rather then hard-coded inclusion approach for class args.\n\nMy thoughts here would also be can we simply remove this class method and use the base class.","commit_id":"d10f8254bed6a25874742742df87912dd8628da1"},{"author":{"_account_id":16051,"name":"Ronald Bradford","email":"ronald.bradford@gmail.com","username":"ronaldbradford"},"change_message_id":"28e2e524d1214ca1e40c44a26df791b5ebdd5f9f","unresolved":false,"context_lines":[{"line_number":66,"context_line":"            \u0027is_admin\u0027, \u0027is_public_api\u0027, \u0027read_only\u0027, \u0027show_deleted\u0027,"},{"line_number":67,"context_line":"            \u0027request_id\u0027, \u0027roles\u0027, \u0027show_password\u0027,"},{"line_number":68,"context_line":"        ]"},{"line_number":69,"context_line":"        init_args \u003d dict(((n, values.get(n)) for n in init_arg_names))"},{"line_number":70,"context_line":"        return cls(**init_args)"}],"source_content_type":"text/x-python","patch_set":1,"id":"bae84128_b662073c","line":69,"updated":"2016-02-24 16:40:57.000000000","message":"nit for dict creation, see\n\n{k: v for (k, v) in values.items() if k in allowed}","commit_id":"d10f8254bed6a25874742742df87912dd8628da1"}]}
