def get(cls): if cls._object is None: cls._object = get_resources() return cls._object
def get(cls): if cls._object is None: rs = register.get_resources() cls._object = register.resources_to_dict(rs) return cls._object
def resources(request): result = get_resources() return json_response(result)