Exemplo n.º 1
0
def convert_hierarchies(rootnodes, settings=SETTINGS_DEFAULT):
    """Calls 'converty_hierarchy' for each root node in 'rootnodes'
    (so passing in '[parent, child]' would convert the 'parent'
    hierarchy assuming 'child' lives under it).
    """
    roots = skeletonutils.uniqueroots(rootnodes)
    result = [convert_hierarchy(r, settings) for r in roots]
    return result
Exemplo n.º 2
0
def convert_hierarchies(rootnodes, settings=SETTINGS_DEFAULT):
    '''
    Converts hierarchy for each root node in 'rootnodes'
    So passing in '[parent, child]' would convert the 'parent' hierarchy assuming 'child lives under it.
    '''
    roots = skeletonutils.uniqueroots(rootnodes)
    result = [convert_hierarchy(r, settings) for r in roots]
    return result
Exemplo n.º 3
0
def convert_hierarchies(rootnodes):
    """Calls `convert_hierarchy` for each root node in `rootnodes`
    (so passing in `[parent, child]` would convert the `parent`
    hierarchy assuming `child` lives under it).
    """
    roots = skeletonutils.uniqueroots(rootnodes)
    result = [convert_hierarchy(r) for r in roots]
    return result
Exemplo n.º 4
0
def convert_hierarchies(rootnodes):
    """Calls `convert_hierarchy` for each root node in `rootnodes`
    (so passing in `[parent, child]` would convert the `parent`
    hierarchy assuming `child` lives under it).
    """
    roots = skeletonutils.uniqueroots(rootnodes)
    result = [convert_hierarchy(r) for r in roots]
    return result
Exemplo n.º 5
0
def convert_hierarchies(rootnodes, settings=SETTINGS_DEFAULT):
    roots = skeletonutils.uniqueroots(rootnodes)
    print('real roots:' + " ".join([node.name() for node in roots]))
    result = [convert_hierarchy(r, settings) for r in roots]
    return result
Exemplo n.º 6
0
def convert_hierarchies(rootnodes, settings=SETTINGS_DEFAULT):
    roots = skeletonutils.uniqueroots(rootnodes)
    result = [convert_hierarchy(r, settings) for r in roots]
    return result
Exemplo n.º 7
0
def convert_hierarchies(rootnodes, settings=SETTINGS_DEFAULT):
    roots = skeletonutils.uniqueroots(rootnodes)
    result = [convert_hierarchy(r, settings) for r in roots]
    return result