<s> import logging <EOL> from collections import OrderedDict <EOL> from django . utils . html import escapejs <EOL> from django . utils . translation import ugettext as _ <EOL> from freenasUI . api . resources import ( <EOL> AvailablePluginsResource , <EOL> PluginsResourceMixin , <EOL> ) <EOL> from freenasUI . freeadmin . options import BaseFreeAdmin <EOL> from freenasUI . freeadmin . site import site <EOL> from freenasUI . plugins import models <EOL> log = logging . getLogger ( '<STR_LIT>' ) <EOL> class PluginsFAdmin ( BaseFreeAdmin ) : <EOL> icon_model = u"<STR_LIT>" <EOL> resource_mixin = PluginsResourceMixin <EOL> fields = ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ) <EOL> class AvailableFAdmin ( BaseFreeAdmin ) : <EOL> icon_model = u"<STR_LIT>" <EOL> resource = AvailablePluginsResource <EOL> double_click = { <EOL> '<STR_LIT:label>' : _ ( '<STR_LIT>' ) , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> } <EOL> def get_actions ( self ) : <EOL> actions = OrderedDict ( ) <EOL> actions [ "<STR_LIT>" ] = { <EOL> '<STR_LIT>' : _ ( "<STR_LIT>" ) , <EOL> '<STR_LIT>' : """<STR_LIT>""" % ( escapejs ( _ ( '<STR_LIT>' ) ) , ) , <EOL> } <EOL> return actions <EOL> def get_column_name_extra ( self ) : <EOL> return { <EOL> '<STR_LIT>' : """<STR_LIT>""" <EOL> } <EOL> site . register ( models . Plugins , PluginsFAdmin ) <EOL> site . register ( models . Available , AvailableFAdmin ) </s>
