def member(name, value, znode): conn_url, api_url = parse_connection_string(value) return Member(znode.version, name, conn_url, api_url, None, None)
def member(node): conn_url, api_url = parse_connection_string(node.value) return Member(node.modifiedIndex, os.path.basename(node.key), conn_url, api_url, node.expiration, node.ttl)