Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

        def initialize_from_settings(settings):
    global dbsession
    global _ROLES

    if not _SQLALCHEMY_INSTALLED:
        return False
    dbsession_path = settings.get('pyramid_backend_vgid_oauth2.sa.dbsession')
    if not dbsession_path:
        return False
    _module, _var = dbsession_path.rsplit('.', 1)
    _module = importlib.import_module(_module, package=None)
    dbsession = getattr(_module, _var)

    _ROLES = get_roles_from_settings(settings)

    return True
        


src/p/y/pyramid_backend_vgid_oauth2-1.0.2/pyramid_backend_vgid_oauth2/__init__.py   pyramid_backend_vgid_oauth2(Download)
    settings = config.get_settings()
 
    if sa.initialize_from_settings(settings):
        adapter = sa
    else: