#NEWLINE# @ staticmethod #NEWLINE# def check_all_nodes( nodes , node_ids ) : #NEWLINE# #INDENT# not_found_node_ids = ( set ( node_ids ) - set ( ( n . id for n in nodes ) ) ) #NEWLINE# if not_found_node_ids : #NEWLINE# #INDENT# raise errors . InvalidData ( 'Nodes with ids {0} were not found.' . format ( ',' . join ( map ( str , not_found_node_ids ) ) ) , log_message = True )