コード例 #1
0
def init():
    """
    This should be called before all other things.

    Call to initialize identitydb and cache several important IDs.
    """
    if _Debug:
        lg.out(4, 'identitycache.init')
    # identitydb.clear()
    identitydb.init()
コード例 #2
0
ファイル: identitycache.py プロジェクト: vesellov/datahaven
def init(success_func=None, fail_func=None):
    """
    This should be called before all other things.
    Call to initialize identitydb and cache several important IDs.
    """
    dhnio.Dprint(4, 'identitycache.init')
    identitydb.init()
    CacheCentralID(success_func, fail_func)
    CacheMoneyServerID()
    CacheMarketServerID()