#NEWLINE# def create_shadow_trigger( trigger_type_db ) : #NEWLINE# #INDENT# '\n    Create a shadow trigger for TriggerType with no parameters.\n    ' #NEWLINE# trigger_type_ref = trigger_type_db . get_reference ( ) . ref #NEWLINE# if trigger_type_db . parameters_schema : #NEWLINE# #INDENT# LOG . debug ( 'Skip shadow trigger for TriggerType with parameters %s.' , trigger_type_ref ) #NEWLINE# return None #NEWLINE# #UNINDENT# trigger = { #NEWLINE# #INDENT# 'name' : trigger_type_db . name , #NEWLINE# 'pack' : trigger_type_db . pack , #NEWLINE# 'type' : trigger_type_db , #NEWLINE# 'parameters' : { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# return create_or_update_trigger_db ( trigger )