#NEWLINE# def __init__( self , attrs = None , **kwargs ) : #NEWLINE# #INDENT# super ( LinkAction , self ) . __init__ ( ** kwargs ) #NEWLINE# self . method = kwargs . get ( 'method' , 'GET' ) #NEWLINE# self . bound_url = kwargs . get ( 'bound_url' , None ) #NEWLINE# self . name = kwargs . get ( 'name' , self . name ) #NEWLINE# self . verbose_name = kwargs . get ( 'verbose_name' , self . name . title ( ) ) #NEWLINE# self . url = kwargs . get ( 'url' , None ) #NEWLINE# self . allowed_data_types = kwargs . get ( 'allowed_data_types' , [ ] ) #NEWLINE# self . icon = kwargs . get ( 'icon' , None ) #NEWLINE# self . kwargs = kwargs #NEWLINE# self . action_type = kwargs . get ( 'action_type' , 'default' ) #NEWLINE# if ( not kwargs . get ( 'verbose_name' , None ) ) : #NEWLINE# #INDENT# raise NotImplementedError ( 'A LinkAction object must have a verbose_name attribute.' ) #NEWLINE# #UNINDENT# if attrs : #NEWLINE# #INDENT# self . attrs . update ( attrs ) #NEWLINE# #UNINDENT# if self . ajax : #NEWLINE# #INDENT# self . classes = ( list ( self . classes ) + [ 'ajax-update' ] )