#NEWLINE# def __init__( self , label = None , **kw ) : #NEWLINE# #INDENT# 'The first argument is the optional `label`, other arguments should\n        be specified as keywords and can be any of the existing class\n        attributes.\n\n        ' #NEWLINE# if ( label is not None ) : #NEWLINE# #INDENT# self . label = label #NEWLINE# #UNINDENT# for ( k , v ) in list ( kw . items ( ) ) : #NEWLINE# #INDENT# if ( not hasattr ( self , k ) ) : #NEWLINE# #INDENT# raise Exception ( ( 'Invalid action keyword %s' % k ) ) #NEWLINE# #UNINDENT# setattr ( self , k , v ) #NEWLINE# #UNINDENT# if self . show_in_workflow : #NEWLINE# #INDENT# self . custom_handler = True #NEWLINE# #UNINDENT# if self . icon_name : #NEWLINE# #INDENT# if ( not ( self . icon_name in constants . ICON_NAMES ) ) : #NEWLINE# #INDENT# raise Exception ( "Unkonwn icon_name '{0}'" . format ( self . icon_name ) ) #NEWLINE# #UNINDENT# #UNINDENT# register_params ( self )