#NEWLINE# def getActions( self , target , sender ) : #NEWLINE# #INDENT# actions = set ( ) #NEWLINE# if ( self . ownActions is not None ) : #NEWLINE# #INDENT# for a in self . ownActions : #NEWLINE# #INDENT# actions . add ( a ) #NEWLINE# #UNINDENT# #UNINDENT# if ( self . actionHandlers is not None ) : #NEWLINE# #INDENT# for h in actions . actionHandlers : #NEWLINE# #INDENT# as_ = h . getActions ( target , sender ) #NEWLINE# if ( as_ is not None ) : #NEWLINE# #INDENT# for a in as_ : #NEWLINE# #INDENT# actions . add ( a ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return list ( actions )