#NEWLINE# def collect_parents( self , manager , node , top_config = None ) : #NEWLINE# #INDENT# top_config = ( top_config or self ) #NEWLINE# parent_name = self . get ( 'parent' ) #NEWLINE# if ( not parent_name ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# matches = list ( self . node . confman . find_config ( parent_name , full_match = True ) ) #NEWLINE# if ( len ( matches ) == 0 ) : #NEWLINE# #INDENT# raise errors . Error ( ( 'config %r parent config %r not found' % ( self . full_name , parent_name ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( len ( matches ) > 1 ) : #NEWLINE# #INDENT# names = ( c . full_name for ( pn , c ) in matches ) #NEWLINE# raise errors . Error ( ( "config %r's parent config %r matches multiple configs: %s" % ( node . full_name , parent_name , ', ' . join ( names ) ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# ( parent_conf_node , parent_conf ) = matches [ 0 ] #NEWLINE# parent_conf . collect ( manager , node , top_config = top_config )