#NEWLINE# def parse_action( self , action ) : #NEWLINE# #INDENT# if ( not all ( ( ( k in action ) for k in ( 'key' , 'label' ) ) ) ) : #NEWLINE# #INDENT# raise ConfigurationError ( 'Wrong configuration format for list actions element' ) #NEWLINE# #UNINDENT# if ( 'type' not in action . keys ( ) ) : #NEWLINE# #INDENT# action [ 'type' ] = self . NO_URL #NEWLINE# #UNINDENT# if ( 'credential' not in action . keys ( ) ) : #NEWLINE# #INDENT# action [ 'credential' ] = None #NEWLINE# #UNINDENT# if ( 'confirm' not in action . keys ( ) ) : #NEWLINE# #INDENT# action [ 'confirm' ] = False #NEWLINE# #UNINDENT# if ( 'confirm_message' not in action . keys ( ) ) : #NEWLINE# #INDENT# action [ 'confirm_message' ] = 'Are you sure?' #NEWLINE# #UNINDENT# if ( 'class' not in action . keys ( ) ) : #NEWLINE# #INDENT# action [ 'class' ] = 'btn btn-small' #NEWLINE# #UNINDENT# if ( 'call' not in action . keys ( ) ) : #NEWLINE# #INDENT# action [ 'call' ] = False #NEWLINE# #UNINDENT# if ( 'visable' not in action . keys ( ) ) : #NEWLINE# #INDENT# action [ 'visable' ] = True #NEWLINE# #UNINDENT# if ( 'disabled' not in action . keys ( ) ) : #NEWLINE# #INDENT# action [ 'disabled' ] = False #NEWLINE# #UNINDENT# return action