Allura/allura/model/repo_refresh.py
def trees(id, cache):
    '''Recursively generate the list of trees contained within a given tree ID'''
    yield id
    entries = cache.get(id, None)
    if entries is None:
        t = TreeDoc.m.get(_id=id)
        entries = [o.id for o in t.tree_ids]
        cache[id] = entries
    for i in entries:
        for x in trees(i, cache):
            yield x
Recursively generate the list of trees contained within a given tree ID
Recursively generate the list of trees contained within a given tree ID
Recursively generate the list of trees contained within a given tree ID
def trees(id, cache):
    yield id
    entries = cache.get(id, None)
    if entries is None:
        t = TreeDoc.m.get(_id=id)
        entries = [o.id for o in t.tree_ids]
        cache[id] = entries
    for i in entries:
        for x in trees(i, cache):
            yield x
def trees ( id , cache ) : yield id entries = cache . get ( id , None ) if entries is None : t = TreeDoc . m . get ( _id = id ) entries = [ o . id for o in t . tree_ids ] cache [ id ] = entries for i in entries : for x in trees ( i , cache ) : yield x
Recursively generate the list of trees contained within a given tree ID
Recursively generate the list of trees contained within a given tree ID
'''Recursively generate the list of trees contained within a given tree ID'''
id
cache