#NEWLINE# def setElementProperties( self , context , elemProps ) : #NEWLINE# #INDENT# args = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for p in self . _getElementProps ( ) : #NEWLINE# #INDENT# if elemProps . has_key ( p ) : #NEWLINE# #INDENT# val = elemProps [ p ] #NEWLINE# convert_to_type = p [ ELPROP_TYPE ] #NEWLINE# if convert_to_type : #NEWLINE# #INDENT# val = ( convert_to_type ( val ) if val else None ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# val = p [ ELPROP_DFLT ] #NEWLINE# if ( val is None ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# #UNINDENT# args [ p [ ELPROP_FNAM ] ] = ( context , val ) #NEWLINE# #UNINDENT# self . applyValues ( ** args )