<s> class ActionItem ( object ) : <EOL> name = "<STR_LIT>" <EOL> text = "<STR_LIT>" <EOL> confirmation = "<STR_LIT>" <EOL> icon = "<STR_LIT>" <EOL> multiple = True <EOL> func = None <EOL> def __init__ ( self , name , text , confirmation , icon , multiple , single , func ) : <EOL> self . name = name <EOL> self . text = text or name <EOL> self . confirmation = confirmation <EOL> self . icon = icon <EOL> self . multiple = multiple <EOL> self . single = single <EOL> self . func = func <EOL> def __repr__ ( self ) : <EOL> return "<STR_LIT>" % ( self . name , self . text , self . confirmation , self . func . __name__ ) <EOL> def action ( name , text , confirmation = None , icon = None , <EOL> multiple = True , single = True ) : <EOL> """<STR_LIT>""" <EOL> def wrap ( f ) : <EOL> f . _action = ( name , text , confirmation , icon , multiple , single ) <EOL> return f <EOL> return wrap </s>
