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