def __init__(self, service): self.length = 32 self._signal = db_changed.connect() self._signal.addCallback(self._caughtUpdate) self.deferred = defer.Deferred() self.deferred.addCallback(self._render) self._service = service self._service.streams[self] = self
def _caughtUpdate(self, unused): self.SystemUpdateID.value = self.SystemUpdateID.value + 1 CDSPrivate.SYSTEM_UPDATE_ID = self.SystemUpdateID.value signal = db_changed.connect() signal.addCallback(self._caughtUpdate)
def __init__(self): signal = db_changed.connect() signal.addCallback(self._caughtUpdate)