#NEWLINE# def extractNodes( self , node , level ) : #NEWLINE# #INDENT# if ( level > 3 ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# self . manager . processNode ( level , node ) #NEWLINE# ' node.get name etc render at this level' #NEWLINE# print ( ( 'child nodes: ' + str ( len ( node . getChildNodes ( ) ) ) ) ) #NEWLINE# if ( len ( node . getDependencies ( ) ) > 0 ) : #NEWLINE# #INDENT# for dep in node . getDependencies ( ) : #NEWLINE# #INDENT# self . extractNodes ( dep , ( level + 1 ) ) #NEWLINE# self . manager . connectNodes ( dep , level ) #NEWLINE# #UNINDENT# #UNINDENT# if ( len ( node . getChildNodes ( ) ) > 0 ) : #NEWLINE# #INDENT# for child in node . getChildNodes ( ) : #NEWLINE# #INDENT# self . extractNodes ( child , ( level + 1 ) ) #NEWLINE# self . manager . connectNodes ( node , child )