)]}'
{"keystoneclient/service_catalog.py":[{"author":{"_account_id":6,"name":"Joe Heck","email":"heckj@mac.com","username":"heckj"},"change_message_id":"42ba30ef418fa9ae8aa8d1ea6b37fc1eb1883d14","unresolved":false,"context_lines":[{"line_number":26,"context_line":"    def __init__(self, resource_dict\u003dNone):"},{"line_number":27,"context_line":"        self._catalog \u003d resource_dict"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"    @property"},{"line_number":30,"context_line":"    def catalog(self):"},{"line_number":31,"context_line":"        if self._catalog is not None:"},{"line_number":32,"context_line":"            return self._catalog"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAALH%2F%2FJU4%3D","line":29,"updated":"2012-10-11 15:42:05.000000000","message":"question on this - \n\ncan we check to see if the catalog \"is loaded\" from external to this class? i.e. hasattr(\u0027catalog\u0027) or something equiv? I was working in a separate branch to lazy load values into the client to represent the useful catalog endpoints and user data so that other clients could use it. I was hoping there\u0027d be some reasonable test to check prior to loading that wasn\u0027t throwing an exception.","commit_id":"d1bc57b1fa19e4b3845d0d2edc90e33324e1bc8b"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"7faa364648978877d6c9aea0fd8df815afc0ae08","unresolved":false,"context_lines":[{"line_number":26,"context_line":"    def __init__(self, resource_dict\u003dNone):"},{"line_number":27,"context_line":"        self._catalog \u003d resource_dict"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"    @property"},{"line_number":30,"context_line":"    def catalog(self):"},{"line_number":31,"context_line":"        if self._catalog is not None:"},{"line_number":32,"context_line":"            return self._catalog"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAALH%2F%2FJUc%3D","line":29,"in_reply_to":"AAAALH%2F%2FJU4%3D","updated":"2012-10-11 15:51:25.000000000","message":"Yes, but it must be checked in several places. I initially wrote this as a decorator in v2_0.shell as @require_service_catalog, which did hasattr(kc, \u0027catalog\u0027). I actually settled on this *because* it\u0027ll throw the same message to python api consumers as well.\n\nI\u0027d be fine with using hasattr() as long as we centralize that somewhere, e.g. a method on the client itself, kc.has_catalog()","commit_id":"d1bc57b1fa19e4b3845d0d2edc90e33324e1bc8b"}]}
