#NEWLINE# def from_tree( self , node , **kwargs ) : #NEWLINE# #INDENT# self . version = kwargs . get ( 'version' , self . version ) #NEWLINE# if node . findall ( 'world' ) : #NEWLINE# #INDENT# node = node . findall ( 'world' ) [ 0 ] #NEWLINE# for include_node in node . iter ( 'include' ) : #NEWLINE# #INDENT# self . models . append ( model_from_include ( None , include_node ) ) #NEWLINE# #UNINDENT# #UNINDENT# self . models += [ Model ( tree = model_node , version = self . version ) for model_node in node . findall ( 'model' ) ]