def __init__(self, ioloop, modules): self.modules = modules PeriodicCallback.__init__(self, self.reload_server, 5000, ioloop) self.repo = Repo("./") self.prev_head = self.repo.active_branch.commit logging.debug("Starting with commit " + str(self.prev_head) + "\n" + self.prev_head.summary)
def __init__(self, crontab, callback): CronTab.__init__(self, crontab) PeriodicCallback.__init__(self, callback, self.next(), IOLoop.current())