def get_manager_from_config(admin_password=None, rdbms_type=None):
 sect = 'AUTOTEST_WEB'
 name = settings.settings.get_value(sect, 'database')
 user = settings.settings.get_value(sect, 'user')
 password = settings.settings.get_value(sect, 'password')
 host = settings.settings.get_value(sect, 'host')
 if (rdbms_type is None):
  rdbms_type = settings.settings.get_value(sect, 'db_type')
 klass = get_manager_class(rdbms_type)
 manager = klass(name, admin_password=admin_password, user=user, password=password, host=host)
 return manager

def get_manager_from_config ( admin_password = None , rdbms_type = None ) : sect = 'AUTOTEST_WEB' name = settings . settings . get_value ( sect , 'database' ) user = settings . settings . get_value ( sect , 'user' ) password = settings . settings . get_value ( sect , 'password' ) host = settings . settings . get_value ( sect , 'host' ) if ( rdbms_type is None ) : rdbms_type = settings . settings . get_value ( sect , 'db_type' ) klass = get_manager_class ( rdbms_type ) manager = klass ( name , admin_password = admin_password , user = user , password = password , host = host ) return manager
returns a manager instance from the information on the configuration file .