(backend_list)
return result
Returns a dictionary of {api id: class} for all installed SMS backends.
Returns a dictionary of {api id: class} for all installed SMS backends.
Returns a dictionary of { api id : class } for all installed SMS backends .
def _get_backend_classes(backend_list):
    """
    Returns a dictionary of {api id: class} for all installed SMS backends.
    """
    from corehq.apps.sms.mixin import BadSMSConfigException
    result = {}

    for backend_class in backend_list:
        cls = to_function(backend_class)
        api_id = cls.get_api_id()
        if api_id in result:
            raise BadSMSConfigException("Cannot have more than one backend with the same "
                                        "api id. Duplicate found for: %s" % api_id)
        result[api_id] = cls
    return result
def _get_backend_classes ( backend_list ) : from corehq . apps . sms . mixin import BadSMSConfigException result = { } for backend_class in backend_list : cls = to_function ( backend_class ) api_id = cls . get_api_id ( ) if api_id in result : raise BadSMSConfigException ( "Cannot have more than one backend with the same " "api id. Duplicate found for: %s" % api_id ) result [ api_id ] = cls return result