(cls, backend_type, domain, name)
return backend
Attempts to load the backend with the given name.
        If no matching backend is found, a BadSMSConfigException is raised.

        backend_type - SQLMobileBackend.SMS or SQLMobileBackend.IVR
        domain - the domain
        name - the name of the backend (corresponding to SQLMobileBackend.name)
Attempts to load the backend with the given name.
        If no matching backend is found, a BadSMSConfigException is raised.
Attempts to load the backend with the given name . If no matching backend is found a BadSMSConfigException is raised .
def load_by_name(cls, backend_type, domain, name):
        """
        Attempts to load the backend with the given name.
        If no matching backend is found, a BadSMSConfigException is raised.

        backend_type - SQLMobileBackend.SMS or SQLMobileBackend.IVR
        domain - the domain
        name - the name of the backend (corresponding to SQLMobileBackend.name)
        """
        backend = cls.get_owned_backend_by_name(backend_type, domain, name)

        if not backend:
            backend = cls.get_shared_backend_by_name(backend_type, domain, name)

        if not backend:
            backend = cls.get_global_backend_by_name(backend_type, name)

        if not backend:
            raise BadSMSConfigException("Could not find %s backend '%s' from "
                                        "domain '%s'" % (backend_type, name, domain))

        return backend
def load_by_name ( cls , backend_type , domain , name ) : backend = cls . get_owned_backend_by_name ( backend_type , domain , name ) if not backend : backend = cls . get_shared_backend_by_name ( backend_type , domain , name ) if not backend : backend = cls . get_global_backend_by_name ( backend_type , name ) if not backend : raise BadSMSConfigException ( "Could not find %s backend '%s' from " "domain '%s'" % ( backend_type , name , domain ) ) return backend