class SyncState(object): def __init__(self, task): self.task = task self.plex = SyncStatePlex(self) self.trakt = SyncStateTrakt(self) @elapsed.clock def load(self): self.plex.load() self.trakt.load() @elapsed.clock def flush(self): log.debug("Flushing caches...") self.plex.flush() self.trakt.flush()
class SyncState(object): def __init__(self, task): self.task = task self.plex = SyncStatePlex(self) self.trakt = SyncStateTrakt(self) @elapsed.clock def load(self): self.plex.load() self.trakt.load() @elapsed.clock def flush(self): log.debug('Flushing caches...') self.plex.flush() self.trakt.flush()
def __init__(self, task): self.task = task self.plex = SyncStatePlex(self) self.trakt = SyncStateTrakt(self)