def _register(self): # print " _register()" # print "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@" # print "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@" # print "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@" # for (a,b,c,d,e,f) in inspect.stack(): # print "@@@@@@@@@@: " + str(b) + " - " + str(c) + " - "+ str(d) + " - "+ str(e) # print "@@@@@@@@@@: " + str(self) # print "@@@@@@@@@@: " + str(self.interval) # print "@@@@@@@@@@: " + str(self._call) # print "@@@@@@@@@@ b: " + str(self._callback_handler) self._call() # if self._callback_handler != None: # TODO: check this! self._callback_handler = reactor.add_timer(self.interval, self._call)
def _register(self): self._call() self._callback_handler = reactor.add_timer(self.interval, self._call)