#NEWLINE# def __new__( mcs , name , bases , attrs ) : #NEWLINE# #INDENT# opts = attrs . pop ( 'Meta' , None ) #NEWLINE# cls = super ( ActionMetaclass , mcs ) . __new__ ( mcs , name , bases , attrs ) #NEWLINE# cls . name = getattr ( opts , 'name' , name ) #NEWLINE# cls . slug = getattr ( attrs , 'slug' , slugify ( name ) ) #NEWLINE# cls . permissions = getattr ( opts , 'permissions' , ( ) ) #NEWLINE# cls . progress_message = getattr ( opts , 'progress_message' , _ ( 'Processing...' ) ) #NEWLINE# cls . help_text = getattr ( opts , 'help_text' , '' ) #NEWLINE# cls . help_text_template = getattr ( opts , 'help_text_template' , None ) #NEWLINE# return cls