)]}'
{"climate/api/v2/controllers/extensions/lease.py":[{"author":{"_account_id":7166,"name":"Sylvain Bauza","email":"sbauza@redhat.com","username":"sbauza"},"change_message_id":"d2399f597e10cc1da46840a89e4d4dd205df65ae","unresolved":false,"context_lines":[{"line_number":107,"context_line":"        return Lease.convert(lease)"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"    @policy.authorize(\u0027leases\u0027, \u0027get\u0027)"},{"line_number":110,"context_line":"    @wsme_pecan.wsexpose([Lease], wtypes.text, q\u003d[])"},{"line_number":111,"context_line":"    def get_all(self, project_id\u003dNone):"},{"line_number":112,"context_line":"        \"\"\"Returns all leases.\"\"\""},{"line_number":113,"context_line":"        ctx \u003d context.current()"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_9dee15ec","line":110,"updated":"2014-07-11 15:07:49.000000000","message":"there is a WSME type for uuid, please use it here","commit_id":"93400913f388e4c49525752c172a89ece821e18a"},{"author":{"_account_id":9331,"name":"Pablo Andres Fuente","email":"pablo.andres.fuente@gmail.com","username":"pafuent"},"change_message_id":"bfcfad7b09b094620d75788fbf593ade88308cd8","unresolved":false,"context_lines":[{"line_number":107,"context_line":"        return Lease.convert(lease)"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"    @policy.authorize(\u0027leases\u0027, \u0027get\u0027)"},{"line_number":110,"context_line":"    @wsme_pecan.wsexpose([Lease], wtypes.text, q\u003d[])"},{"line_number":111,"context_line":"    def get_all(self, project_id\u003dNone):"},{"line_number":112,"context_line":"        \"\"\"Returns all leases.\"\"\""},{"line_number":113,"context_line":"        ctx \u003d context.current()"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_2ee826e1","line":110,"in_reply_to":"baada198_9dee15ec","updated":"2014-07-21 21:28:43.000000000","message":"Done","commit_id":"93400913f388e4c49525752c172a89ece821e18a"},{"author":{"_account_id":7166,"name":"Sylvain Bauza","email":"sbauza@redhat.com","username":"sbauza"},"change_message_id":"d2399f597e10cc1da46840a89e4d4dd205df65ae","unresolved":false,"context_lines":[{"line_number":111,"context_line":"    def get_all(self, project_id\u003dNone):"},{"line_number":112,"context_line":"        \"\"\"Returns all leases.\"\"\""},{"line_number":113,"context_line":"        ctx \u003d context.current()"},{"line_number":114,"context_line":"        if not policy.enforce(ctx, \u0027admin\u0027, {}, do_raise\u003dFalse):"},{"line_number":115,"context_line":"            if project_id is not None and project_id !\u003d ctx.project_id:"},{"line_number":116,"context_line":"                raise exceptions.ClimateException("},{"line_number":117,"context_line":"                    _(\"Only admin users can filter by project\"))"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_5d739d7f","line":114,"updated":"2014-07-11 15:07:49.000000000","message":"If we need to check that an user is admin, I would prefer to set the is_admin flag at the context creation level by checking the policy there (so in api.context file) so the check here would only be :\n\n if not context.is_admin :","commit_id":"93400913f388e4c49525752c172a89ece821e18a"},{"author":{"_account_id":9331,"name":"Pablo Andres Fuente","email":"pablo.andres.fuente@gmail.com","username":"pafuent"},"change_message_id":"bfcfad7b09b094620d75788fbf593ade88308cd8","unresolved":false,"context_lines":[{"line_number":111,"context_line":"    def get_all(self, project_id\u003dNone):"},{"line_number":112,"context_line":"        \"\"\"Returns all leases.\"\"\""},{"line_number":113,"context_line":"        ctx \u003d context.current()"},{"line_number":114,"context_line":"        if not policy.enforce(ctx, \u0027admin\u0027, {}, do_raise\u003dFalse):"},{"line_number":115,"context_line":"            if project_id is not None and project_id !\u003d ctx.project_id:"},{"line_number":116,"context_line":"                raise exceptions.ClimateException("},{"line_number":117,"context_line":"                    _(\"Only admin users can filter by project\"))"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_4ee39a04","line":114,"in_reply_to":"baada198_5d739d7f","updated":"2014-07-21 21:28:43.000000000","message":"Done","commit_id":"93400913f388e4c49525752c172a89ece821e18a"}]}
