Пример #1
0
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()
Пример #2
0
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()
Пример #3
0
    def __init__(self, task):
        self.task = task

        self.plex = SyncStatePlex(self)
        self.trakt = SyncStateTrakt(self)
Пример #4
0
    def __init__(self, task):
        self.task = task

        self.plex = SyncStatePlex(self)
        self.trakt = SyncStateTrakt(self)