def bind_parents( index, shared ):
    """Set parents on all items in index"""
    for v in iterindex( index ):
        v['parents'] = shared.get( v['address'], [] )
def bind_parents ( index , shared ) : for v in iterindex ( index ) : v [ 'parents' ] = shared . get ( v [ 'address' ] , [ ] )
Set parents on all items in index