Did I find the right examples for you? yes no

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)
load pool backend. If this is an external module it should be
passed as "somelib.backend_mod".

        def load_backend(backend_name):
    """ load pool backend. If this is an external module it should be
    passed as "somelib.backend_mod".

    """
    try:
        if len(backend_name.split(".")) > 1:
            mod = import_module(backend_name)
        elif backend_name == "sqlite":
            mod = import_module("gaffer.gafferd.auth.SqliteAuthHandler")
        return mod
    except ImportError:
        error_msg = "%s isn't a socketpool backend" % backend_name
        raise ImportError(error_msg)
        


src/g/a/gaffer-0.5.2/gaffer/gafferd/users.py   gaffer(Download)
from ..util import bytestring, ord_
from .pbkdf2 import pbkdf2_hex
from .util import load_backend
 
 
            self._backend = SqliteAuthHandler(loop, cfg)
        else:
            self._backend = load_backend(cfg.keys_backend)
 
    def __enter__(self):

src/g/a/gaffer-HEAD/gaffer/gafferd/users.py   gaffer(Download)
from ..util import bytestring, ord_
from .pbkdf2 import pbkdf2_hex
from .util import load_backend
 
 
            self._backend = SqliteAuthHandler(loop, cfg)
        else:
            self._backend = load_backend(cfg.keys_backend)
 
    def __enter__(self):

src/g/a/gaffer-0.5.2/gaffer/gafferd/keys.py   gaffer(Download)
 
from ..events import EventEmitter
from .util import load_backend
 
 
            self._backend = SqliteKeyBackend(loop, cfg)
        else:
            self._backend = load_backend(cfg.keys_backend)
 
        # initialize the events listenr

src/g/a/gaffer-HEAD/gaffer/gafferd/keys.py   gaffer(Download)
 
from ..events import EventEmitter
from .util import load_backend
 
 
            self._backend = SqliteKeyBackend(loop, cfg)
        else:
            self._backend = load_backend(cfg.keys_backend)
 
        # initialize the events listenr