<s> from __future__ import absolute_import , unicode_literals <EOL> import logging <EOL> from django_services import service <EOL> from . . models import DatabaseInfra <EOL> from drivers import factory_for <EOL> from django_services . service import checkpermission <EOL> LOG = logging . getLogger ( __name__ ) <EOL> class DatabaseInfraService ( service . CRUDService ) : <EOL> model_class = DatabaseInfra <EOL> def __get_engine__ ( self , databaseinfra ) : <EOL> return factory_for ( databaseinfra ) <EOL> @ checkpermission ( prefix = "<STR_LIT>" ) <EOL> def get_databaseinfra_status ( self , databaseinfra ) : <EOL> return self . __get_engine__ ( databaseinfra ) . info ( ) </s>
