#NEWLINE# def set_script_from_namespace( self , name , desc ) : #NEWLINE# #INDENT# group = XmlList ( tag = 'script' , name = name ) #NEWLINE# group . text = ( '\n%s\n' % desc . strip ( ) ) #NEWLINE# group . tail = '\n\n' #NEWLINE# value = self . get_global ( name ) #NEWLINE# if ( value is None ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# for function in value : #NEWLINE# #INDENT# elt = XmlList ( tag = 'xform' , name = function . __name__ ) #NEWLINE# elt . tail = '\n' #NEWLINE# group . append ( elt ) #NEWLINE# #UNINDENT# self . append ( group ) #NEWLINE# #UNINDENT# return self