コード例 #1
0
ファイル: history.py プロジェクト: iduque/UHCore
 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
コード例 #2
0
 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
コード例 #3
0
ファイル: history.py プロジェクト: UH-msalem/accompany
 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
コード例 #4
0
    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