#NEWLINE# @ classmethod #NEWLINE# def get_trigger( cls , trigger_type ) : #NEWLINE# #INDENT# 'Gets a trigger by its type.\n\n        Refreshes once if the trigger is not found; subsequently, throws a\n        KeyError.\n        ' #NEWLINE# if ( trigger_type not in cls . _triggers_dict ) : #NEWLINE# #INDENT# cls . _refresh ( ) #NEWLINE# #UNINDENT# return trigger_type . _triggers_dict [ trigger_type ]