(string_path, repeats)
return path
Return a list of PathNodes suitable for a TableConfiguration or ExportGroupSchema
    path, from the given path and list of repeats.
    :param string_path: A path to a question or group, like "/data/group1"
    :param repeats: A list of repeat groups, like ["/data/repeat1"]
    :return: A list of PathNodes
Return a list of PathNodes suitable for a TableConfiguration or ExportGroupSchema
    path, from the given path and list of repeats.
    :param string_path: A path to a question or group, like "/data/group1"
    :param repeats: A list of repeat groups, like ["/data/repeat1"]
    :return: A list of PathNodes
Return a list of PathNodes suitable for a TableConfiguration or ExportGroupSchema path from the given path and list of repeats . : param string_path : A path to a question or group like / data / group1 : param repeats : A list of repeat groups like [ / data / repeat1 ] : return : A list of PathNodes
def _question_path_to_path_nodes(string_path, repeats):
    """
    Return a list of PathNodes suitable for a TableConfiguration or ExportGroupSchema
    path, from the given path and list of repeats.
    :param string_path: A path to a question or group, like "/data/group1"
    :param repeats: A list of repeat groups, like ["/data/repeat1"]
    :return: A list of PathNodes
    """
    if not string_path:
        return []

    parts = string_path.split("/")
    assert parts[0] == "", 'First part of path should be ""'
    parts = parts[1:]

    repeat_test_string = ""
    path = []
    for part in parts:
        repeat_test_string += "/" + part
        path.append(PathNode(name=part, is_repeat=repeat_test_string in repeats))

    path[0].name = "form"
    return path
def _question_path_to_path_nodes ( string_path , repeats ) : if not string_path : return [ ] parts = string_path . split ( "/" ) assert parts [ 0 ] == "" , 'First part of path should be ""' parts = parts [ 1 : ] repeat_test_string = "" path = [ ] for part in parts : repeat_test_string += "/" + part path . append ( PathNode ( name = part , is_repeat = repeat_test_string in repeats ) ) path [ 0 ] . name = "form" return path