def __init__(self):
     if SeedingStatsDBHandler.__single is not None:
         raise RuntimeError, 'SeedingStatDBHandler is singleton'
     SeedingStatsDBHandler.__single = self
     db = SQLiteSeedingStatsCacheDB.getInstance()
     BasicDBHandler.__init__(self, db, 'SeedingStats')
Beispiel #2
0
 def __init__(self):
     if VideoPlaybackDBHandler.__single is not None:
         raise RuntimeError, 'VideoPlaybackDBHandler is singleton'
     BasicDBHandler.__init__(self,
                             SQLiteVideoPlaybackStatsCacheDB.get_instance(),
                             'playback_event')
 def __init__(self):
     if FriendshipStatisticsDBHandler.__single is not None:
         raise RuntimeError, 'FriendshipStatisticsDBHandler is singleton'
     FriendshipStatisticsDBHandler.__single = self
     db = SQLiteFriendshipStatsCacheDB.getInstance()
     BasicDBHandler.__init__(self, db, 'FriendshipStatistics')
 def __init__(self):
     if VideoPlaybackDBHandler.__single is not None:
         raise RuntimeError, 'VideoPlaybackDBHandler is singleton'
     BasicDBHandler.__init__(self, SQLiteVideoPlaybackStatsCacheDB.get_instance(), 'playback_event')