def addPollingHistory(self, ruleName, delaySeconds): if not ActionHistory._runningThreads.has_key(ruleName): ahw = PollingThread(target=self.addHistory, delayTime=delaySeconds, args=(ruleName,), completeCallback=self._removePollingHistory) ahw.start() ActionHistory._runningThreads[ruleName] = ahw return ruleName
def addPollingHistory(self, ruleName, delaySeconds): """ Starts automatically polling and updating the action history table every x seconds with the specified rule name """ if not ActionHistory._runningThreads.has_key(ruleName): ahw = PollingThread(target=self.addHistory, delayTime=delaySeconds, args=(ruleName,), completeCallback=self._removePollingHistory) ahw.start() ActionHistory._runningThreads[ruleName] = ahw return ruleName
def addPollingHistory(self, ruleName, delaySeconds): """ Starts automatically polling and updating the action history table every x seconds with the specified rule name """ if not ActionHistory._runningThreads.has_key(ruleName): ahw = PollingThread(target=self.addHistory, delayTime=delaySeconds, args=(ruleName, ), completeCallback=self._removePollingHistory) ahw.start() ActionHistory._runningThreads[ruleName] = ahw return ruleName