#NEWLINE# def _perform( self , action ) : #NEWLINE# #INDENT# method = getattr ( self . ui . handler , action . action , None ) #NEWLINE# if ( method is not None ) : #NEWLINE# #INDENT# method ( self . ui . info ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# context = self . ui . context #NEWLINE# for item in PerformHandlers : #NEWLINE# #INDENT# handler = context . get ( item , None ) #NEWLINE# if ( handler is not None ) : #NEWLINE# #INDENT# method = getattr ( handler , action . action , None ) #NEWLINE# if ( method is not None ) : #NEWLINE# #INDENT# method ( ) #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# action . perform ( )