#NEWLINE# def applyValues( self , **kwargs ) : #NEWLINE# #INDENT# for ( prop , args ) in kwargs . items ( ) : #NEWLINE# #INDENT# fn = getattr ( kwargs , ( 'set%s' % prop ) , None ) #NEWLINE# if ( not fn ) : #NEWLINE# #INDENT# raise Exception ( ( 'setter function for %s does not exist' % prop ) ) #NEWLINE# #UNINDENT# args = kwargs [ prop ] #NEWLINE# if isinstance ( args , tuple ) : #NEWLINE# #INDENT# fn ( * args ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# fn ( args )