コード例 #1
0
ファイル: monitor.py プロジェクト: jldupont/musync
    def __init__(self):
        AgentThreadedWithEvents.__init__(self)
        self.mb_detected=False

        self.counters={ "mb": 0, "mb_last_advertised":0, "mb_detected_count": 0
                       }
        self.events={ "mb_detected": False
                     }
コード例 #2
0
ファイル: ratings_db.py プロジェクト: jldupont/musync
 def __init__(self, dbpath, dev_mode=False):
     AgentThreadedWithEvents.__init__(self)
     
     self.current_count=0
     self.dbh=DbHelper(dbpath, "ratings_db", self.TABLE_PARAMS)
コード例 #3
0
ファイル: _tester.py プロジェクト: jldupont/musync
 def __init__(self):
     AgentThreadedWithEvents.__init__(self)
コード例 #4
0
ファイル: ratings_cache.py プロジェクト: jldupont/musync
 def __init__(self, dbpath, dev_mode=False):
     AgentThreadedWithEvents.__init__(self)
     self.dbh = DbHelper(dbpath, "ratings_cache", self.TABLE_PARAMS)
     self.mb_detected = False
コード例 #5
0
ファイル: ratings_cache.py プロジェクト: jldupont/musync
    def __init__(self, dbpath, dev_mode=False):
        AgentThreadedWithEvents.__init__(self)

        self.dbh=DbHelper(dbpath, "cache", self.TABLE_PARAMS)