Exemplo n.º 1
0
def _async_init():
    SysConfig.new(mongo_meta=mongo_conf.global_mongo_meta,
                  debug_mode=options.debug_mode)
    yield SysConfig.current().open()
    webapp.settings["gid_rpc"] = GIDRPC(SysConfig.current().get(
        sys_config.SC_GID_RPC_URL))
    webapp.settings["msg_rpc"] = MsgRPC(SysConfig.current().get(
        sys_config.SC_MSG_RPC_URL))
    webapp.settings["terminal_rpc"] = TerminalRPC(SysConfig.current().get(
        sys_config.SC_TERMINAL_RPC_URL))
Exemplo n.º 2
0
def _async_init():
    SysConfig.new(sys_config.DEFAULT_CATEGORY,
                  mongo_meta=mongo_conf.global_mongo_meta,
                  debug_mode=debug)
    yield SysConfig.current().open()
Exemplo n.º 3
0
def _async_init():
    SysConfig.new(sys_config.DEFAULT_CATEGORY, mongo_client, thread_pool)
    yield SysConfig.current().open()
Exemplo n.º 4
0
def _async_init():
    SysConfig.new(mongo_meta=mongo_conf.global_mongo_meta,
                  debug_mode=options.debug_mode)
    yield SysConfig.current().open()
Exemplo n.º 5
0
def _async_init():
    SysConfig.new(sys_config.DEFAULT_CATEGORY, mongo_client, thread_pool)
    yield SysConfig.current().open()
    webapp.settings["gid_rpc"] = GIDRPC(SysConfig.current().get(
        sys_config.SC_GID_RPC_URL))