#NEWLINE# def fill_with_nodes( items ) : #NEWLINE# #INDENT# uids = set ( map ( ( lambda o : o . node_id ) , items ) ) #NEWLINE# nodes = Node . query . filter_in ( Node . id , uids ) #NEWLINE# items = map ( ( lambda o : _attach_node ( o , nodes [ o . node_id ] ) ) , items ) #NEWLINE# return items