#NEWLINE# @ staticmethod #NEWLINE# def from_xml( node ) : #NEWLINE# #INDENT# data = node . get ( 'author' , None ) #NEWLINE# author = CDATModuleNode . convert_from_str ( version , 'str' ) #NEWLINE# data = node . get ( 'programminglanguage' , None ) #NEWLINE# language = CDATModuleNode . convert_from_str ( data , 'str' ) #NEWLINE# data = node . get ( 'type' , None ) #NEWLINE# type = CDATModuleNode . convert_from_str ( data , 'str' ) #NEWLINE# data = node . get ( 'url' , None ) #NEWLINE# url = CDATModuleNode . convert_from_str ( data , 'str' ) #NEWLINE# data = node . get ( 'version' , None ) #NEWLINE# version = CDATModuleNode . convert_from_str ( data , 'str' ) #NEWLINE# data = node . get ( 'codepath' , None ) #NEWLINE# codepath = CDATModuleNode . convert_from_str ( data , 'str' ) #NEWLINE# actions = [ ] #NEWLINE# for child in node . getchildren ( ) : #NEWLINE# #INDENT# if ( child . tag == 'action' ) : #NEWLINE# #INDENT# action = CDATActionNode . from_xml ( child ) #NEWLINE# actions . append ( action ) #NEWLINE# #UNINDENT# #UNINDENT# return CDATModule ( author = author , language = language , type = type , url = url , codepath = codepath , version = version , actions = actions )