#NEWLINE# def add_trigger_models( trigger_types ) : #NEWLINE# #INDENT# '\n    Register trigger types.\n\n    :param trigger_types: A list of triggers to register.\n    :type trigger_types: ``list`` of ``dict``\n\n    :rtype: ``list`` of ``tuple`` (trigger_type, trigger)\n    ' #NEWLINE# [ trigger_types for r in ( _validate_trigger_type ( trigger_type ) for trigger_type in trigger_types ) if ( r is not None ) ] #NEWLINE# result = [ ] #NEWLINE# for trigger_type in trigger_types : #NEWLINE# #INDENT# item = _add_trigger_models ( trigger_type = trigger_type ) #NEWLINE# if item : #NEWLINE# #INDENT# result . append ( item ) #NEWLINE# #UNINDENT# #UNINDENT# return result