<s> from ajenti . api import * <EOL> from ajenti . plugins . db_common . api import DBPlugin <EOL> from ajenti . util import platform_select <EOL> from api import MongoDB <EOL> @ plugin <EOL> class MongoDBPlugin ( DBPlugin ) : <EOL> config_class = MongoDB <EOL> has_users = False <EOL> service_name = platform_select ( <EOL> default = '<STR_LIT>' <EOL> ) <EOL> def init ( self ) : <EOL> self . title = '<STR_LIT>' <EOL> self . category = _ ( '<STR_LIT>' ) <EOL> self . icon = '<STR_LIT>' <EOL> self . db = MongoDB . get ( ) <EOL> def query_sql ( self , db , sql ) : <EOL> return self . db . query_sql ( db , sql ) <EOL> def query_databases ( self ) : <EOL> return self . db . query_databases ( ) <EOL> def query_drop ( self , db ) : <EOL> return self . db . query_drop ( db ) <EOL> def query_create ( self , name ) : <EOL> return self . db . query_create ( name ) </s>
