<s> """<STR_LIT>""" <EOL> from flask import url_for <EOL> class PluginMount ( type ) : <EOL> def __init__ ( cls , name , bases , attrs ) : <EOL> if not hasattr ( cls , '<STR_LIT>' ) : <EOL> cls . plugins = { } <EOL> else : <EOL> cls . slug = getattr ( cls , '<STR_LIT>' , None ) or cls . title . replace ( '<STR_LIT:U+0020>' , '<STR_LIT:->' ) . lower ( ) <EOL> cls . plugins [ cls . slug ] = cls <EOL> class GroupActionProvider : <EOL> __metaclass__ = PluginMount <EOL> new_window = False <EOL> @ classmethod <EOL> def get_url ( cls , group_id ) : <EOL> return url_for ( '<STR_LIT>' , group_id = group_id , slug = cls . slug ) <EOL> def __init__ ( self , group_id ) : <EOL> self . url = self . __class__ . get_url ( group_id ) <EOL> def __call__ ( self , request , group ) : <EOL> self . selected = request . path == self . url <EOL> if not self . selected : <EOL> return <EOL> return self . view ( request , group ) <EOL> def view ( self ) : <EOL> """<STR_LIT>""" <EOL> def tags ( self , request , tag_list , group ) : <EOL> """<STR_LIT>""" <EOL> return tag_list <EOL> def actions ( self , request , action_list , group ) : <EOL> """<STR_LIT>""" <EOL> return action_list <EOL> def panels ( self , request , panel_list , group ) : <EOL> """<STR_LIT>""" <EOL> return panel_list <EOL> def widget ( self , request , group ) : <EOL> """<STR_LIT>""" </s>
